diff options
author | sever-sever <v.gletenko@vyos.io> | 2020-12-22 14:40:52 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2020-12-22 14:40:52 +0000 |
commit | 2426bae1e644741051eb65870e42d04ae4047dc9 (patch) | |
tree | 2bf053a31fd456f3a210a05845f5642659854fda /src/op_mode/show_nat_translations.py | |
parent | b0c8fb08c55d6c54b15bf6829b2996c583bd7e11 (diff) | |
download | vyos-1x-2426bae1e644741051eb65870e42d04ae4047dc9.tar.gz vyos-1x-2426bae1e644741051eb65870e42d04ae4047dc9.zip |
op-mode: T2859: Fix show nat source translations
Diffstat (limited to 'src/op_mode/show_nat_translations.py')
-rwxr-xr-x | src/op_mode/show_nat_translations.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/op_mode/show_nat_translations.py b/src/op_mode/show_nat_translations.py index 3af33b78e..04c20e584 100755 --- a/src/op_mode/show_nat_translations.py +++ b/src/op_mode/show_nat_translations.py @@ -193,8 +193,10 @@ def main(): elif arg.file: process(content(arg.file), arg.stats, arg.proto, arg.pipe, arg.verbose, arg.type) else: - process(run(command(arg.type, arg.proto, arg.ipaddr)), arg.stats, arg.proto, arg.pipe, arg.verbose, arg.type) - + try: + process(run(command(arg.type, arg.proto, arg.ipaddr)), arg.stats, arg.proto, arg.pipe, arg.verbose, arg.type) + except: + pass if __name__ == '__main__': main() |