summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2013-08-14 22:15:48 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2013-08-14 22:15:48 +0200
commite0163dc2d1b9234bd3e2fa6c475911427fa6b74a (patch)
tree4033496e6edbc597006ba22d12fd65a50ae78b1c /modules
parentb39121c388ca6b83a2b32977866f395e480e77cf (diff)
tracking: Handle exceptions in lc_callback to avoid stopping the LoopingCall.
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index 7cf601f..478ae9d 100644
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -592,6 +592,10 @@ url [TRACKINGNO] - Lists URLs for matches to the corresponding website''')
for row in consignments:
self.update_consignment(session, row)
session.commit()
+ except Exception:
+ import traceback
+ print 'Exception as %s' % datetime.datetime.now()
+ traceback.print_exc()
finally:
session.close()