diff --git a/cookieplone/utils/commands/__init__.py b/cookieplone/utils/commands/__init__.py index 7600840..287661a 100644 --- a/cookieplone/utils/commands/__init__.py +++ b/cookieplone/utils/commands/__init__.py @@ -16,7 +16,7 @@ def _get_command_version(cmd: str) -> str: .stdout.decode() .strip() ) - except FileNotFoundError: + except (FileNotFoundError, PermissionError): raw_version = "" return raw_version diff --git a/news/62.bugfix b/news/62.bugfix new file mode 100644 index 0000000..14dc169 --- /dev/null +++ b/news/62.bugfix @@ -0,0 +1 @@ +Added an exception for sanity check command failure due to permission error. @ewohnlich