Skip to content

Commit c30e9ff

Browse files
authored
[show] Don't abort in InterfaceAliasConverter ctor if PORT table doesn't exist (#571)
1 parent 1aac696 commit c30e9ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

show/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def __init__(self):
5858
self.port_dict = config_db.get_table('PORT')
5959

6060
if not self.port_dict:
61-
click.echo("port_dict is None!")
62-
raise click.Abort()
61+
click.echo(message="Warning: failed to retrieve PORT table from ConfigDB!", err=True)
62+
self.port_dict = {}
6363

6464
for port_name in self.port_dict.keys():
6565
try:

0 commit comments

Comments
 (0)