From c30e9ff8682cb7abf636aa268d7455b8ab56d789 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Wed, 10 Jul 2019 15:29:33 -0700 Subject: [PATCH] [show] Don't abort in InterfaceAliasConverter ctor if PORT table doesn't exist (#571) --- show/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/show/main.py b/show/main.py index 402a6b7641a7..ae2b3706952f 100755 --- a/show/main.py +++ b/show/main.py @@ -58,8 +58,8 @@ def __init__(self): self.port_dict = config_db.get_table('PORT') if not self.port_dict: - click.echo("port_dict is None!") - raise click.Abort() + click.echo(message="Warning: failed to retrieve PORT table from ConfigDB!", err=True) + self.port_dict = {} for port_name in self.port_dict.keys(): try: