Displaying 3 results from an estimated 3 matches for "previous_handl".
Did you mean:
previous_handler
2008 Apr 04
2
TransactionError
...8/gems/mongrel-1.0.1/bin/mongrel_rails:243
from /usr/local/bin/mongrel_rails:16:in `load''
from /usr/local/bin/mongrel_rails:16
"Transaction aborted" is in activerecord/lib/active_record/transactions.rb:
module ClassMethods
def transaction(&block)
previous_handler = trap(''TERM'') { raise TransactionError, "Transaction aborted" }
increment_open_transactions
begin
connection.transaction(Thread.current[''start_db_transaction''], &block)
ensure
decrement_open_transactions...
2017 May 21
0
[PATCH 2/2] python: unicode decode handler error scheme setter
...ode_error_handler = "strict";
+
static PyObject **get_all_event_callbacks (guestfs_h *g, size_t *len_rtn);
void
@@ -45,6 +47,17 @@ guestfs_int_py_extend_module (PyObject *module)
}
PyObject *
+guestfs_int_py_set_decode_error_handler (PyObject *self, PyObject *args)
+{
+ const char *previous_handler = decode_error_handler;
+
+ if (!PyArg_ParseTuple (args, (char *) "s:set_decode_error_handler", &decode_error_handler))
+ return NULL;
+
+ return guestfs_int_py_fromstring (previous_handler);
+}
+
+PyObject *
guestfs_int_py_create (PyObject *self, PyObject *args)
{
guestfs...
2017 May 21
3
[PATCH 0/2] python: improved UTF8 decoding error handling
The Python 3 bindings currently are unable to deal with non UTF8 characters.
This series continues what proposed in RHBZ#1406906.
A new function 'set_decode_error_handler' allows the User to specify
how to deal with decoding errors.
The default behaviour will be raising a UnicodeDecodeError.
If the handler is changed to 'surrogateescape', non UTF8 characters will be escaped
in a