More debug

main
Bob Mottram 2020-03-01 13:18:42 +00:00
parent 8c34555db3
commit 01f9c6625c
1 changed files with 2 additions and 0 deletions

View File

@ -542,10 +542,12 @@ def htmlEditBlog(mediaInstance: bool,translate: {}, \
"""
postFilename=locatePost(baseDir,nickname,domain,postUrl)
if not postFilename:
print('Edit blog: Filename not found for '+postUrl)
return None
postJsonObject=loadJson(postFilename)
if not postJsonObject:
print('Edit blog: json not loaded for '+postFilename)
return None
iconsDir=getIconsDir(baseDir)