diff roundup/backends/rdbms_common.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 a81a3cd067fa
children 1f8492d68aca
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Mon Feb 23 20:16:55 2026 -0500
+++ b/roundup/backends/rdbms_common.py	Thu Feb 26 09:46:02 2026 -0500
@@ -2612,7 +2612,7 @@
             e.context['class'] = pln
             e.context['attr'] = prp
             raise
-        except:
+        except Exception:
             pass
         # Fallback to original code
         args = []
@@ -2693,7 +2693,7 @@
             e.context['class'] = classname
             e.context['attr'] = proptree.name
             raise
-        except:
+        except Exception:
             # fallback behavior when expression parsing above fails
             orclause = ''
             if '-1' in v:

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