summaryrefslogtreecommitdiff
path: root/src/op_mode/show_nat_translations.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-12-22 22:03:02 +0700
committerGitHub <noreply@github.com>2020-12-22 22:03:02 +0700
commit3fd31206fd6f00e407147e14877b0c70aacd3770 (patch)
tree2bf053a31fd456f3a210a05845f5642659854fda /src/op_mode/show_nat_translations.py
parentb0c8fb08c55d6c54b15bf6829b2996c583bd7e11 (diff)
parent2426bae1e644741051eb65870e42d04ae4047dc9 (diff)
downloadvyos-1x-3fd31206fd6f00e407147e14877b0c70aacd3770.tar.gz
vyos-1x-3fd31206fd6f00e407147e14877b0c70aacd3770.zip
Merge pull request #656 from sever-sever/T2859
op-mode: T2859: Fix show nat source translations
Diffstat (limited to 'src/op_mode/show_nat_translations.py')
-rwxr-xr-xsrc/op_mode/show_nat_translations.py6
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()