summaryrefslogtreecommitdiff
path: root/src/op_mode/version.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-08-04 12:51:27 -0400
committerDaniil Baturin <daniil@vyos.io>2022-08-04 12:51:27 -0400
commit46173f284cd971c4201969fa9fd35121c7cf7a3a (patch)
treec51c7945432c27bf1186c757a2112a99a30aab27 /src/op_mode/version.py
parente199ae2dd5636f9177234bb05b77f4a0c9543428 (diff)
downloadvyos-1x-46173f284cd971c4201969fa9fd35121c7cf7a3a.tar.gz
vyos-1x-46173f284cd971c4201969fa9fd35121c7cf7a3a.zip
T2719: add an exception hierarchy for op mode errors
Diffstat (limited to 'src/op_mode/version.py')
-rwxr-xr-xsrc/op_mode/version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/version.py b/src/op_mode/version.py
index 06208c3e5..ad0293aca 100755
--- a/src/op_mode/version.py
+++ b/src/op_mode/version.py
@@ -78,7 +78,7 @@ if __name__ == '__main__':
res = vyos.opmode.run(sys.modules[__name__])
if res:
print(res)
- except ValueError as e:
+ except (ValueError, vyos.opmode.Error) as e:
print(e)
sys.exit(1)