Revision 2517
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
936 | 936 |
return mk_select(db, joins, cols, conds, distinct_on, |
937 | 937 |
limit=limit_ref[0], start=0) |
938 | 938 |
|
939 |
exceptions = set() |
|
939 | 940 |
def log_exc(e): |
940 | 941 |
log_debug('Caught exception: '+exc.str_(e, first_line_only=True)) |
942 |
assert e not in exceptions # avoid infinite loops |
|
943 |
exceptions.add(e) |
|
941 | 944 |
def remove_all_rows(): |
942 | 945 |
log_debug('Returning NULL for all rows') |
943 | 946 |
limit_ref[0] = 0 # just create an empty pkeys table |
Also available in: Unified diff
sql.py: put_table(): log_exc(): Check if exception already caught before to avoid infinite loops