From 411635f78229cdec26167652d44434bf8aa309ab Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Sat, 13 Jun 2020 23:29:59 +0300 Subject: Fix exception causes all over the codebase --- git/objects/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/objects/util.py') 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 -- cgit v1.2.3