def quiet_close(closable):
 try:
  closable.close()
 except Exception:
  logger.debug(u'Exception while closing', exc_info=True)

def quiet_close ( closable ) : try : closable . close ( ) except Exception : logger . debug ( u'Exception while closing' , exc_info = True )
quietly closes a closable object without throwing an exception .