def exception_generator():
 try:
  raise Exception('FAKE EXCEPTION')
 except Exception as error:
  logger.log((u'FAKE ERROR: ' + ex(error)), logger.ERROR)
  logger.submit_errors()
  raise

def exception_generator ( ) : try : raise Exception ( 'FAKE EXCEPTION' ) except Exception as error : logger . log ( ( u'FAKE ERROR: ' + ex ( error ) ) , logger . ERROR ) logger . submit_errors ( ) raise
dummy function to raise a fake exception and log it .