Skip to content

Commit

Permalink
Return empty list instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
execvpe committed Dec 14, 2024
1 parent 8ce668e commit b1bf4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dvr_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ def from_database(basepath: str) -> Optional[Recording]:
return rec

@staticmethod
def from_database_mastered() -> Optional[list[Recording]]:
def from_database_mastered() -> list[Recording]:
if (all_mastered := db_load_mastered_all()) is None:
return None
return []

for r in all_mastered:
r.basepath = None
Expand Down

0 comments on commit b1bf4e4

Please sign in to comment.