Skip to content

Commit

Permalink
fix: handle None result in DisplayBuffer
Browse files Browse the repository at this point in the history
Fix an issue where `result` could be None, causing a crash in
DisplayBuffer. Added a check to ensure `result` is not None before
accessing its values.
  • Loading branch information
andreztz committed Aug 7, 2024
1 parent 8671a53 commit ae08d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xradios/tui/buffers/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def run(self):
except Exception:
pass
else:
if all(result.values()):
if result and all(result.values()):
self.metadata = result
await asyncio.sleep(30)

Expand Down

0 comments on commit ae08d24

Please sign in to comment.