Skip to content

Commit

Permalink
Tersen lambda handling in TransactionExecutor constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrose committed Jun 5, 2013
1 parent ab20d30 commit e927e7e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions socorro/database/transaction_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ class TransactionExecutor(RequiredConfig):

#--------------------------------------------------------------------------
def __init__(self, config, db_conn_context_source,
quit_check_callback=None):
quit_check_callback=lambda: False):
self.config = config
self.db_conn_context_source = db_conn_context_source
if quit_check_callback:
self.quit_check = quit_check_callback
else:
self.quit_check = lambda: False
self.quit_check = quit_check_callback
self.do_quit_check = True

#--------------------------------------------------------------------------
Expand Down

0 comments on commit e927e7e

Please sign in to comment.