From 6a414b1e0dec478762347cc258e3d35f7416787e Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Nov 06 2019 04:05:46 +0000 Subject: check ConfigParser object rather than config path list fixes: #1763 --- diff --git a/koji/__init__.py b/koji/__init__.py index 40403bb..8141d13 100644 --- a/koji/__init__.py +++ b/koji/__init__.py @@ -1776,7 +1776,7 @@ def read_config(profile_name, user_config=None): result[name] = value # Check if the specified profile had a config specified - if configs and not got_conf: + if config.sections() and not got_conf: raise ConfigurationError("no configuration for profile name: %s" % profile_name) # special handling for cert defaults