From 96828b6727156bc6b08d9fd86e0e5a2ac7a3fc8a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Oct 2020 14:31:34 +0100 Subject: [PATCH] Show exception --- newswire.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newswire.py b/newswire.py index ecef8c59..7c8550af 100644 --- a/newswire.py +++ b/newswire.py @@ -412,7 +412,7 @@ def runNewswireDaemon(baseDir: str, httpd, unused: str): """Periodically updates RSS feeds """ # initial sleep to allow the system to start up - time.sleep(70) + time.sleep(50) while True: # has the session been created yet? if not httpd.session: @@ -424,8 +424,8 @@ def runNewswireDaemon(baseDir: str, httpd, unused: str): newNewswire = None try: newNewswire = getDictFromNewswire(httpd.session, baseDir) - except BaseException: - print('WARN: unable to update newswire') + except Exception as e: + print('WARN: unable to update newswire ' + str(e)) time.sleep(120) continue