Skip to content

Commit 58c2961

Browse files
authored
Fix pfcwd stats crash with invalid queue name (sonic-net#1077)
Signed-off-by: Neetha John <[email protected]>
1 parent 3425be4 commit 58c2961

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pfcwd/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def stats(empty, queues):
8383
for queue in queues:
8484
stats_list = []
8585
queue_oid = db.get(db.COUNTERS_DB, 'COUNTERS_QUEUE_NAME_MAP', queue)
86+
if queue_oid is None:
87+
continue
8688
stats = db.get_all(db.COUNTERS_DB, 'COUNTERS:' + queue_oid)
8789
if stats is None:
8890
continue

0 commit comments

Comments
 (0)