def errorOccurred(err):
 log.err(err)
 try:
  reactor.stop()
 except RuntimeError:
  pass

def errorOccurred ( err ) : log . err ( err ) try : reactor . stop ( ) except RuntimeError : pass
something went awry .