From bbf7e7ddbb48c9e8976aa0c4f3aba4a6f66f32de Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 15 May 2020 11:19:36 -0500 Subject: [PATCH] Catch exception in exception handling for French user. --- fanficfare/story.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fanficfare/story.py b/fanficfare/story.py index 9c8a6b8e..23afef79 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -1236,7 +1236,10 @@ class Story(Configurable): imgtype, background="#"+bgcolor) except Exception as e: - logger.info("Failed to load or convert image, \nparent:%s\nskipping:%s\nException: %s"%(parenturl,imgurl,e)) + try: + logger.info("Failed to load or convert image, \nparent:%s\nskipping:%s\nException: %s"%(parenturl,imgurl,e)) + except: + logger.info("Failed to load or convert image, \nparent:%s\nskipping:%s\n(Exception output also caused exception)"%(parenturl,imgurl)) return ("failedtoload","failedtoload") # explicit cover, make the first image.