def run_change_reporter(account_names, interval=None):
 try:
  for account in account_names:
   reporter = Reporter(account=account, alert_accounts=account_names, debug=True)
   reporter.run(account, interval)
 except (OperationalError, InvalidRequestError, StatementError) as e:
  app.logger.exception('Database error processing accounts %s, cleaning up session.', account_names)
  db.session.remove()
  store_exception('scheduler-run-change-reporter', None, e)

def run_change_reporter ( account_names , interval = None ) : try : for account in account_names : reporter = Reporter ( account = account , alert_accounts = account_names , debug = True ) reporter . run ( account , interval ) except ( OperationalError , InvalidRequestError , StatementError ) as e : app . logger . exception ( 'Database error processing accounts %s, cleaning up session.' , account_names ) db . session . remove ( ) store_exception ( 'scheduler-run-change-reporter' , None , e )
runs reporter .