Fix source output 'list out of range'

This commit is contained in:
yoshiko2
2021-05-29 00:50:47 +08:00
parent 2a7c2b5095
commit a3eb94ddcb
9 changed files with 25 additions and 9 deletions

View File

@@ -293,7 +293,9 @@ def main(number):
'series': getSeries(detail_page),
}
except Exception:
except Exception as e:
if config.Config().debug():
print(e)
dic = {"title": ""}
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
return js