comparison roundup/configuration.py @ 8456:9f7e863fd1cd

merge multiple fix: python < 3.12 returns ParsingError not RuntimeError; print exception
author John Rouillard <rouilj@ieee.org>
date Mon, 22 Sep 2025 14:08:36 -0400
parents 588ae856cd57
children f7fadbac5856
comparison
equal deleted inserted replaced
8454:588ae856cd57 8456:9f7e863fd1cd
2658 2658
2659 raise LoggingConfigError( 2659 raise LoggingConfigError(
2660 "Error loading logging config from %(file)s.\n\n" 2660 "Error loading logging config from %(file)s.\n\n"
2661 " %(msg)s\n\n%(context)s\n" % { 2661 " %(msg)s\n\n%(context)s\n" % {
2662 "file": _file, 2662 "file": _file,
2663 "msg": e.args[0], 2663 "msg": type(e).__name__ + ": " + str(e),
2664 "context": " ".join(context), 2664 "context": " ".join(context),
2665 } 2665 }
2666 ) 2666 )
2667 elif _file.endswith(".json"): 2667 elif _file.endswith(".json"):
2668 config_dict = self.load_config_dict_from_json_file(_file) 2668 config_dict = self.load_config_dict_from_json_file(_file)

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