Commit 78b25830 authored by echel0n's avatar echel0n

Fixed issue with location being NoneType for TVEpisode objects

parent 090f0fb4
......@@ -694,7 +694,7 @@ class TVShow(object):
else:
if no_create:
return None
tv_episode = TVEpisode(showid=self.indexer_id, indexer=self.indexer, season=season, episode=episode, location=location)
tv_episode = TVEpisode(showid=self.indexer_id, indexer=self.indexer, season=season, episode=episode, location=location or '')
self._episodes[tv_episode.indexer_id] = tv_episode
return tv_episode
except orm.exc.MultipleResultsFound:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment