From 2426bae1e644741051eb65870e42d04ae4047dc9 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Tue, 22 Dec 2020 14:40:52 +0000 Subject: op-mode: T2859: Fix show nat source translations --- src/op_mode/show_nat_translations.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/op_mode') 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() -- cgit v1.2.3