4 ms·
Yeah, no. I know I'll mistakenly do except Exception: resource.rollback() raise instead of except BaseException: resource.rollback() rais
by eesmith 2y ago
Yeah, no. I know I'll mistakenly do
except Exception:
resource.rollback()
raise
instead of
except BaseException:
resource.rollback()
raise
and it's going to be really hard to insert a test case which ensures I really handled KeyboardInterrupt and the like.