diff options
author | Yaroslav Halchenko <debian@onerussian.com> | 2017-11-27 20:35:19 -0500 |
---|---|---|
committer | Yaroslav Halchenko <debian@onerussian.com> | 2017-11-27 20:35:19 -0500 |
commit | 6ee08fce6ec508fdc6e577e3e507b342d048fa16 (patch) | |
tree | 47b8bac37afca3878d4535d3c13db38e55242628 /git/refs | |
parent | 0a96030d82fa379d24b952a58eed395143950c7b (diff) | |
download | gitpython-6ee08fce6ec508fdc6e577e3e507b342d048fa16.tar.gz |
RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXT
I did keep some "bare" except with catch all Exception: , while tried to disable
flake8 complaints where clearly all exceptions are to be catched
Diffstat (limited to 'git/refs')
-rw-r--r-- | git/refs/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/refs/log.py b/git/refs/log.py index 623a63db..1c085ef1 100644 --- a/git/refs/log.py +++ b/git/refs/log.py @@ -246,7 +246,7 @@ class RefLog(list, Serializable): try: self._serialize(fp) lfd.commit() - except: + except Exception: # on failure it rolls back automatically, but we make it clear lfd.rollback() raise |