Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- self.worker(args)
- except Exception as e:
- self.parent.log('Thread exception in threads._worker: %s' % str(e), '!', tid=tid)
- print(traceback.print_exc(file=sys.stdout))
- e = str(e)
- tb = sys.exc_info()[2]
- if tb:
- tb = ''.join(traceback.format_tb(tb))
- else:
- tb = 'Not detected'
- with open('SQLITE_THREAD_'+str(tid)+'_CRASHED', 'w') as fp:
- fp.write(e +' --- '+ tb)
Add Comment
Please, Sign In to add comment