##// END OF EJS Templates
exceptions: for dulwich we cannot catch all exceptions because it re-uses some...
marcink -
r172:40d7e43c default
parent child Browse files
Show More
@@ -59,9 +59,12 b' def reraise_safe_exceptions(func):'
59 except (HangupException, UnexpectedCommandError) as e:
59 except (HangupException, UnexpectedCommandError) as e:
60 raise exceptions.VcsException(e.message)
60 raise exceptions.VcsException(e.message)
61 except Exception as e:
61 except Exception as e:
62 if not hasattr(e, '_vcs_kind'):
62 # NOTE(marcink): becuase of how dulwich handles some exceptions
63 log.exception("Unhandled exception in git remote call")
63 # (KeyError on empty repos), we cannot track this and catch all
64 raise_from_original(exceptions.UnhandledException)
64 # exceptions, it's an exceptions from other handlers
65 #if not hasattr(e, '_vcs_kind'):
66 #log.exception("Unhandled exception in git remote call")
67 #raise_from_original(exceptions.UnhandledException)
65 raise
68 raise
66 return wrapper
69 return wrapper
67
70
General Comments 0
You need to be logged in to leave comments. Login now