Show More
@@ -56,9 +56,11 b' def reraise_safe_exceptions(func):' | |||
|
56 | 56 | return func(*args, **kwargs) |
|
57 | 57 | except (ChecksumMismatch, WrongObjectException, MissingCommitError, |
|
58 | 58 | ObjectMissing) as e: |
|
59 |
|
|
|
59 | exc = exceptions.LookupException(e) | |
|
60 | raise exc(e) | |
|
60 | 61 | except (HangupException, UnexpectedCommandError) as e: |
|
61 |
|
|
|
62 | exc = exceptions.VcsException(e) | |
|
63 | raise exc(e) | |
|
62 | 64 | except Exception as e: |
|
63 | 65 | # NOTE(marcink): becuase of how dulwich handles some exceptions |
|
64 | 66 | # (KeyError on empty repos), we cannot track this and catch all |
General Comments 0
You need to be logged in to leave comments.
Login now