1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-25 17:16:51 +00:00

FIX: Fix for TypeError on startup regarding specific site

This commit is contained in:
evilhero 2015-04-17 14:36:20 -04:00
parent c3de824271
commit d7e7ab80a1

View file

@ -862,7 +862,11 @@ def initialize():
#print pro
for key, value in pro.items():
#print key, value
flatt_providers.append(re.sub('cbt','32p',value))
try:
flatt_providers.append(re.sub('cbt','32p',value))
except TypeError:
#if the value is None (no Name specified for Newznab entry), break out now
continue
PROVIDER_ORDER = list(itertools.izip(*[itertools.islice(flatt_providers, i, None, 2) for i in range(2)]))
#print 'text provider order is: ' + str(PROVIDER_ORDER)