diff options
author | Ram Rachum <ram@rachum.com> | 2020-06-13 23:29:59 +0300 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-06-14 08:30:09 +0800 |
commit | 411635f78229cdec26167652d44434bf8aa309ab (patch) | |
tree | 1e301ce6bdd458d4db20c993695bb763d1b9d158 /git/objects/util.py | |
parent | 99ba753b837faab0509728ee455507f1a682b471 (diff) | |
download | gitpython-411635f78229cdec26167652d44434bf8aa309ab.tar.gz |
Fix exception causes all over the codebase
Diffstat (limited to 'git/objects/util.py')
-rw-r--r-- | git/objects/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/util.py b/git/objects/util.py index 235b520e..b02479b7 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -203,8 +203,8 @@ def parse_date(string_date): # still here ? fail raise ValueError("no format matched") # END handle format - except Exception: - raise ValueError("Unsupported date format: %s" % string_date) + except Exception as e: + raise ValueError("Unsupported date format: %s" % string_date) from e # END handle exceptions |