@classmethod<EOL><INDENT>def load_config(cls, configfile="<STR_LIT>"):<DEDENT>
configfile = getenv(cls.CONFIGFILE_ENV_KEY, configfile)<EOL>if isfile(configfile):<EOL><INDENT>with open(configfile, "<STR_LIT:r>") as cf:<EOL><INDENT>try:<EOL><INDENT>dictConfig(load(cf))<EOL><DEDENT>except ValueError:<EOL><INDENT>debug("<STR_LIT>", configfile)<EOL><DEDENT>except Exception:<EOL><INDENT>exception("<STR_LIT>", configfile)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>".format(configfile))<EOL><DEDENT>
:raises: ValueError