mirror of
https://github.com/simonw/datasette.git
synced 2026-06-14 04:56:59 +02:00
parent
d473dc565f
commit
f2927a1647
1 changed files with 2 additions and 2 deletions
|
|
@ -829,10 +829,10 @@ def _apply_write_wrapper(fn, wrapper_factory, track_event):
|
|||
# Execute the actual write
|
||||
try:
|
||||
result = fn(conn)
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
# Throw exception into generator so it can handle it
|
||||
try:
|
||||
gen.throw(*sys.exc_info())
|
||||
gen.throw(e)
|
||||
except StopIteration:
|
||||
pass
|
||||
# Re-raise the original exception
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue