Extra debug

main
Bob Mottram 2021-11-01 20:27:29 +00:00
parent 5d56b08d14
commit d414e204bb
2 changed files with 3 additions and 1 deletions

View File

@ -245,7 +245,6 @@ def _saveCustomEmoji(session, baseDir: str, emojiName: str, url: str,
debug: bool) -> None:
"""Saves custom emoji to file
"""
debug = True
if not session:
if debug:
print('EX: _saveCustomEmoji no session')

View File

@ -416,8 +416,11 @@ def downloadImage(session, baseDir: str, url: str,
sessionHeaders = {
'Accept': 'image/' + mimeType
}
break
if not sessionHeaders:
if debug:
print('downloadImage: no session headers')
return False
if not os.path.isfile(imageFilename) or force: