Project

General

Profile

« Previous | Next » 

Revision 3660

Use new exc.reraise() where exc.raise_() was used, so that the stack trace is preserved when the exception is rethrown

View differences:

db_xml.py
51 51

  
52 52
put_special_funcs = set(['_simplifyPath'])
53 53

  
54
def put(db, node, row_ins_ct_ref=None, on_error=exc.raise_,
54
def put(db, node, row_ins_ct_ref=None, on_error=exc.reraise,
55 55
    col_defaults={}, in_table=None, parent_ids_loc=None, next=None):
56 56
    def put_(node, in_row_ct_ref=None):
57 57
        return put(db, node, row_ins_ct_ref, on_error, col_defaults,
......
167 167
input_col_prefix = '$'
168 168

  
169 169
def put_table(db, node, in_table, in_row_ct_ref=None, row_ins_ct_ref=None,
170
    limit=None, start=0, on_error=exc.raise_, col_defaults={}):
170
    limit=None, start=0, on_error=exc.reraise, col_defaults={}):
171 171
    '''
172 172
    @param node The XML tree that transforms the input to the output. Similar to
173 173
        put()'s node param, but with the input column name prefixed by

Also available in: Unified diff