Skip to content

Commit

Permalink
[show] Don't abort in InterfaceAliasConverter ctor if PORT table does…
Browse files Browse the repository at this point in the history
…n't exist (sonic-net#571)
  • Loading branch information
jleveque authored Jul 10, 2019
1 parent 1aac696 commit c30e9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions show/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c30e9ff

Please sign in to comment.