diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-08-05 10:31:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 10:31:20 +0300 |
commit | 2a10ffa4b5074be27458159fa94d6227d0e5c7f7 (patch) | |
tree | fca060b0b0e5b05eb10b53c4a5a4fddd9ed7bc48 /src/op_mode/vrf.py | |
parent | dfb4ce2a5aa4b2d8726ed08cd3ef301e611f57de (diff) | |
parent | 46173f284cd971c4201969fa9fd35121c7cf7a3a (diff) | |
download | vyos-1x-2a10ffa4b5074be27458159fa94d6227d0e5c7f7.tar.gz vyos-1x-2a10ffa4b5074be27458159fa94d6227d0e5c7f7.zip |
Merge pull request #1459 from dmbaturin/genop-exn
T2719: add an exception hierarchy for op mode errors
Diffstat (limited to 'src/op_mode/vrf.py')
-rwxr-xr-x | src/op_mode/vrf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/vrf.py b/src/op_mode/vrf.py index e3d944d90..aeb50fe6e 100755 --- a/src/op_mode/vrf.py +++ b/src/op_mode/vrf.py @@ -90,6 +90,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) |