Show More
@@ -56,9 +56,11 b' def reraise_safe_exceptions(func):' | |||||
56 | return func(*args, **kwargs) |
|
56 | return func(*args, **kwargs) | |
57 | except (ChecksumMismatch, WrongObjectException, MissingCommitError, |
|
57 | except (ChecksumMismatch, WrongObjectException, MissingCommitError, | |
58 | ObjectMissing) as e: |
|
58 | ObjectMissing) as e: | |
59 |
|
|
59 | exc = exceptions.LookupException(e) | |
|
60 | raise exc(e) | |||
60 | except (HangupException, UnexpectedCommandError) as e: |
|
61 | except (HangupException, UnexpectedCommandError) as e: | |
61 |
|
|
62 | exc = exceptions.VcsException(e) | |
|
63 | raise exc(e) | |||
62 | except Exception as e: |
|
64 | except Exception as e: | |
63 | # NOTE(marcink): becuase of how dulwich handles some exceptions |
|
65 | # NOTE(marcink): becuase of how dulwich handles some exceptions | |
64 | # (KeyError on empty repos), we cannot track this and catch all |
|
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