Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scraperwiki/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def commit_transactions():
"""
Ensure any outstanding transactions are committed on exit
"""
if _State._transaction is not None:
if _State is not None and _State._transaction is not None:
_State._transaction.commit()
_State._transaction = None

Expand Down