Skip to content

Commit 6c46419

Browse files
committed
fix: python 3.{7,8,10} raise configfile.ParsingError not RuntimeError
when adding broken syntax: =foo to logging config file. These version failing in CI. 3.9 and 3.11 are also affected. RuntimeError was added in 3.12.
1 parent 044c744 commit 6c46419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ def init_logging(self):
26392639
_file,
26402640
disable_existing_loggers=self[
26412641
"LOGGING_DISABLE_LOGGERS"])
2642-
except (ValueError, RuntimeError,
2642+
except (ValueError, RuntimeError, configparser.ParsingError,
26432643
KeyError, NameError, ModuleNotFoundError) as e:
26442644
# configparser.DuplicateOptionError includes
26452645
# filename, line number and a useful error.

0 commit comments

Comments
 (0)