diff scripts/imapServer.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 b5fffd2a64af
children 9c3ec0a5c7fc
line wrap: on
line diff
--- a/scripts/imapServer.py	Mon Feb 23 20:16:55 2026 -0500
+++ b/scripts/imapServer.py	Thu Feb 26 09:46:02 2026 -0500
@@ -225,7 +225,7 @@
 
                             # We are done with this mailbox
                             serv.close()
-                    except:
+                    except Exception:
                         log.exception('Exception with server %s user %s',
                             server, user)
                         noErrors = False
@@ -233,7 +233,7 @@
                     serv.logout()
                     serv.shutdown()
                     del serv
-            except:
+            except Exception:
                 log.exception('Exception while connecting to %s', server)
                 noErrors = False
         return noErrors

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