Skip to content

Commit 5f7bb1f

Browse files
authored
Avoid exception for shows that don't have show_lists in DB (#9050)
1 parent c2645b0 commit 5f7bb1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

medusa/tv/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ def _load_from_db(self):
15301530
# Load external id's from indexer_mappings table.
15311531
self.externals = load_externals_from_db(self.indexer, self.series_id)
15321532

1533-
self.show_lists = sql_results[0]['show_lists']
1533+
self.show_lists = sql_results[0]['show_lists'] or 'series'
15341534

15351535
# Get IMDb_info from database
15361536
main_db_con = db.DBConnection()

0 commit comments

Comments
 (0)