def log_other_exceptions(func):
 functools.wraps(func)
 def newfunc(*args):
  try:
   return func(*args)
  except ChunkDoesntExist:
   raise
  except Exception as e:
   logging.exception('%s raised this exception', func.func_name)
   raise
 return newfunc

def log_other_exceptions ( func ) : functools . wraps ( func ) def newfunc ( * args ) : try : return func ( * args ) except ChunkDoesntExist : raise except Exception as e : logging . exception ( '%s raised this exception' , func . func_name ) raise return newfunc
a decorator that prints out any errors that are not chunkdoesntexist errors .