diff tools/migrate-queries.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 64b05e24dbd8
children 9c3ec0a5c7fc
line wrap: on
line diff
--- a/tools/migrate-queries.py	Mon Feb 23 20:16:55 2026 -0500
+++ b/tools/migrate-queries.py	Thu Feb 26 09:46:02 2026 -0500
@@ -22,7 +22,7 @@
     # Do some basic exception handling to catch bad arguments.
     try:
         instance = roundup.instance.open(home)
-    except:
+    except Exception:
         print('Cannot open instance home directory %s!' % home)
         continue
 

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