diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-08-04 12:51:27 -0400 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2022-08-04 12:51:27 -0400 |
commit | 46173f284cd971c4201969fa9fd35121c7cf7a3a (patch) | |
tree | c51c7945432c27bf1186c757a2112a99a30aab27 /src/op_mode/neighbor.py | |
parent | e199ae2dd5636f9177234bb05b77f4a0c9543428 (diff) | |
download | vyos-1x-46173f284cd971c4201969fa9fd35121c7cf7a3a.tar.gz vyos-1x-46173f284cd971c4201969fa9fd35121c7cf7a3a.zip |
T2719: add an exception hierarchy for op mode errors
Diffstat (limited to 'src/op_mode/neighbor.py')
-rwxr-xr-x | src/op_mode/neighbor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/neighbor.py b/src/op_mode/neighbor.py index d86a372ac..264dbdc72 100755 --- a/src/op_mode/neighbor.py +++ b/src/op_mode/neighbor.py @@ -116,7 +116,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) |