diff options
Diffstat (limited to 'src/op_mode/dns.py')
-rwxr-xr-x | src/op_mode/dns.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/dns.py b/src/op_mode/dns.py index 717652b9b..9e5b1040c 100755 --- a/src/op_mode/dns.py +++ b/src/op_mode/dns.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) |