mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
Merge pull request #157 from JackDandy/feature/AddMaybeArticleNone
Add handling of exceptional case with missing network name (NoneType) in...
This commit is contained in:
commit
f2aac9e7bb
3 changed files with 7 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
|||
* Change anime release groups to in memory storage for lowered latency
|
||||
* Change adjust menu delay and hover styling
|
||||
* Fix provider list color
|
||||
* Add handling of exceptional case with missing network name (NoneType) in Episode View
|
||||
|
||||
[develop changelog]
|
||||
|
||||
|
|
|
@ -768,7 +768,9 @@ class CMD_ComingEpisodes(ApiCall):
|
|||
(b['data_show_name'], b['parsed_datetime'], b['season'], b['episode'])))
|
||||
}
|
||||
|
||||
def value_maybe_article(value=''):
|
||||
def value_maybe_article(value=None):
|
||||
if None is value:
|
||||
return ''
|
||||
return (remove_article(value.lower()), value.lower())[sickbeard.SORT_ARTICLE]
|
||||
|
||||
# add parsed_datetime to the dict
|
||||
|
|
|
@ -415,7 +415,9 @@ class MainHandler(RequestHandler):
|
|||
(b['localtime'], b['data_show_name'], b['season'], b['episode'])))
|
||||
}
|
||||
|
||||
def value_maybe_article(value=''):
|
||||
def value_maybe_article(value=None):
|
||||
if None is value:
|
||||
return ''
|
||||
return (remove_article(value.lower()), value.lower())[sickbeard.SORT_ARTICLE]
|
||||
|
||||
# add localtime to the dict
|
||||
|
|
Loading…
Reference in a new issue