comparison roundup/cgi/TAL/TALInterpreter.py @ 8528:fed0f839c260

fix: replace except: with except Exception: (by haosenwang1018@github) Remove bare 'except:' statements replace with 'except Exception'. In roundup_xmlrpc_server.py I changed Exception to BaseException so the database gets closed on signals as well. The rest of the changes do not look like they affect data integrity and are commited as supplied.
author John Rouillard <rouilj@ieee.org>
date Thu, 26 Feb 2026 09:46:02 -0500
parents 883c9e90b403
children
comparison
equal deleted inserted replaced
8527:d4a43d9da8ef 8528:fed0f839c260
722 state = self.saveState() 722 state = self.saveState()
723 self.stream = stream = self.StringIO() 723 self.stream = stream = self.StringIO()
724 self._stream_write = stream.write 724 self._stream_write = stream.write
725 try: 725 try:
726 self.interpret(block) 726 self.interpret(block)
727 except: 727 except Exception:
728 exc = sys.exc_info()[1] 728 exc = sys.exc_info()[1]
729 self.restoreState(state) 729 self.restoreState(state)
730 engine = self.engine 730 engine = self.engine
731 engine.beginScope() 731 engine.beginScope()
732 error = engine.createErrorInfo(exc, self.position) 732 error = engine.createErrorInfo(exc, self.position)

Roundup Issue Tracker: http://roundup-tracker.org/