FIX: fix for indentation error in last PR

This commit is contained in:
evilhero 2018-06-19 10:18:06 -04:00
parent abafe08f1d
commit 87712914bf
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ def pullsearch(comicapi, comicquery, offset, type):
try:
dom = parseString(r.content) #(data)
except ExpatError:
if u'<title>Abnormal Traffic Detected' in r.content:
logger.error("ComicVine has banned this server's IP address because it exceeded the API rate limit.")
if u'<title>Abnormal Traffic Detected' in r.content:
logger.error('ComicVine has banned this server\'s IP address because it exceeded the API rate limit.')
else:
logger.warn('[WARNING] ComicVine is not responding correctly at the moment. This is usually due to some problems on their end. If you re-try things again in a few moments, it might work properly.')
return