diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2013-08-14 22:15:48 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2013-08-14 22:15:48 +0200 |
commit | e0163dc2d1b9234bd3e2fa6c475911427fa6b74a (patch) | |
tree | 4033496e6edbc597006ba22d12fd65a50ae78b1c | |
parent | b39121c388ca6b83a2b32977866f395e480e77cf (diff) |
tracking: Handle exceptions in lc_callback to avoid stopping the LoopingCall.
-rw-r--r-- | modules/tracking.py | 4 |
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() |