diff options
author | Stephen Finucane <stephen@that.guru> | 2017-03-01 22:22:59 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-03-01 22:22:59 +0000 |
commit | d3e9aee4605411ad3ab672e7dd6b7bdd15836fe3 (patch) | |
tree | 1f0956a88321d383372ba7dd5eca0dc0a5c2fc59 | |
parent | cd304e424cd805a28803e2662cd3a79acd5a3f17 (diff) | |
download | patchwork-d3e9aee4605411ad3ab672e7dd6b7bdd15836fe3.tar patchwork-d3e9aee4605411ad3ab672e7dd6b7bdd15836fe3.tar.gz |
Don't catch non-Python 2.7 exceptions
The 'FileNotFoundError' exception is only available in Python 3.3+.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 7b07b71e ("templates: Add Patchwork version")
-rw-r--r-- | patchwork/version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/version.py b/patchwork/version.py index 212d8d3..7e3fa2e 100644 --- a/patchwork/version.py +++ b/patchwork/version.py @@ -57,7 +57,7 @@ def get_raw_git_version(): try: git_version = subprocess.check_output(['git', 'describe'], cwd=ROOT_DIR) - except (OSError, FileNotFoundError): + except OSError: return '' return git_version.strip().decode('utf-8') |