Skip to content

Commit

Permalink
Allow unsupported KeyError to throw
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 2, 2025
1 parent 81345ed commit 9ed71e8
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions plextraktsync/plex/guid/provider/TMDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@ def episode_number(self):

@property
def type(self):
try:
return {
"show": "tv",
"season": "tv",
"episode": "tv",
"movie": "movie",
}[self.guid.type]
except IndexError:
return ""
return {
"show": "tv",
"season": "tv",
"episode": "tv",
"movie": "movie",
}[self.guid.type]

0 comments on commit 9ed71e8

Please sign in to comment.