diff roundup/cgi/TAL/DummyEngine.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 d26921b851c3
children
line wrap: on
line diff
--- a/roundup/cgi/TAL/DummyEngine.py	Mon Feb 23 20:16:55 2026 -0500
+++ b/roundup/cgi/TAL/DummyEngine.py	Thu Feb 26 09:46:02 2026 -0500
@@ -118,7 +118,7 @@
         if type == "python":
             try:
                 return eval(expr, self.globals, self.locals)
-            except:
+            except Exception:
                 raise TALESError("evaluation error in %s" % repr(expr))
         if type == "position":
             # Insert the current source file name, line number,

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