diff --git a/ospd/ospd.py b/ospd/ospd.py index 2b55c481..8ad21e49 100644 --- a/ospd/ospd.py +++ b/ospd/ospd.py @@ -1051,7 +1051,7 @@ def handle_get_performance(self, scan_et): try: output = subprocess.check_output(cmd) - except subprocess.CalledProcessError as e: + except (subprocess.CalledProcessError, PermissionError) as e: raise OspdCommandError( 'Bogus get_performance format. %s' % e, 'get_performance'