summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-02 16:15:33 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-02 16:15:33 +0200
commit874cdc7d01e044a40dde0cebaca8814bd5c5ba88 (patch)
treee1145ef29c6ee4470c3916c99f8b9cd5d11bfc0b /bin
parent2fc444ef24f240e2f7250a225a28e87253c38a28 (diff)
blubb
Diffstat (limited to 'bin')
-rw-r--r--bin/updater/owncloud_news_updater/updater.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/updater/owncloud_news_updater/updater.py b/bin/updater/owncloud_news_updater/updater.py
index 1712781e8..e60ef8964 100644
--- a/bin/updater/owncloud_news_updater/updater.py
+++ b/bin/updater/owncloud_news_updater/updater.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-
+import traceback
import json
import threading
import requests
@@ -66,6 +66,7 @@ class Updater:
time.sleep(timeout)
except (Exception) as e:
self.logger.error('%s: Trying again in 30 seconds' % e)
+ traceback.print_exc(file=sys.stderr)
time.sleep(30)
def before_update(self):
@@ -103,6 +104,7 @@ class UpdateThread(threading.Thread):
self.update_feed(feed)
except (Exception) as e:
self.logger.error(e)
+ traceback.print_exc(file=sys.stderr)
def update_feed(self, feed):
raise NotImplementedError