diff options
author | toonn <toonn@toonn.io> | 2021-07-17 23:17:59 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-07-20 23:17:45 +0200 |
commit | c0ff7e6e238fd9b3b7fbc13e55be6c0aa9ff8921 (patch) | |
tree | 8ce8654de8e957758f51efc3d175579df1174a04 /ranger | |
parent | 0678f5f0f7163ee1f099b5ff657d58d533b5fd9c (diff) | |
download | ranger-c0ff7e6e238fd9b3b7fbc13e55be6c0aa9ff8921.tar.gz |
tests.manpage_completion: Use with
This test revealed an exception that wasn't covered in `ranger/__init__.py` due to the refactor to a with-statement.
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/__init__.py b/ranger/__init__.py index a3b01f9d..cc388d60 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -31,7 +31,7 @@ def version_helper(): ) as git_describe: (git_description, _) = git_describe.communicate() version_string = version_string.format(git_description.strip('\n')) - except (OSError, subprocess.CalledProcessError): + except (OSError, subprocess.CalledProcessError, AttributeError): version_string = version_string.format(__version__) return version_string |