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:
parent
c3de824271
commit
d7e7ab80a1
1 changed files with 5 additions and 1 deletions
|
@ -862,7 +862,11 @@ def initialize():
|
||||||
#print pro
|
#print pro
|
||||||
for key, value in pro.items():
|
for key, value in pro.items():
|
||||||
#print key, value
|
#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)]))
|
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)
|
#print 'text provider order is: ' + str(PROVIDER_ORDER)
|
||||||
|
|
Loading…
Reference in a new issue