mirror of https://gitlab.com/bashrc2/epicyon
Extra debug
parent
5d56b08d14
commit
d414e204bb
|
@ -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')
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue