comparison roundup/dist/command/build.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 1acdc651133b
children 9c3ec0a5c7fc
comparison
equal deleted inserted replaced
8527:d4a43d9da8ef 8528:fed0f839c260
28 source is unpacked. 28 source is unpacked.
29 """ 29 """
30 manifest_file = 'roundup.egg-info/SOURCES.txt' 30 manifest_file = 'roundup.egg-info/SOURCES.txt'
31 try: 31 try:
32 f=open(manifest_file) 32 f=open(manifest_file)
33 except: 33 except Exception:
34 print('\n*** SOURCE WARNING: The MANIFEST file "%s" is missing!' % manifest_file) 34 print('\n*** SOURCE WARNING: The MANIFEST file "%s" is missing!' % manifest_file)
35 return 35 return
36 try: 36 try:
37 manifest = [l.strip() for l in f.readlines()] 37 manifest = [l.strip() for l in f.readlines()]
38 finally: 38 finally:

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