summaryrefslogtreecommitdiff
path: root/src/op_mode/nat.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/nat.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/nat.py')
-rwxr-xr-xsrc/op_mode/nat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/nat.py b/src/op_mode/nat.py
index a98fc4227..12fc4c782 100755
--- a/src/op_mode/nat.py
+++ b/src/op_mode/nat.py
@@ -196,6 +196,6 @@ 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)