From e0163dc2d1b9234bd3e2fa6c475911427fa6b74a Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 14 Aug 2013 22:15:48 +0200 Subject: tracking: Handle exceptions in lc_callback to avoid stopping the LoopingCall. --- modules/tracking.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') 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() -- cgit v1.2.3