diff --git a/lib/query.py b/lib/query.py
index d1ce3ff67976e687e3647108da61d5937ae2f610..f811b086b348890ca31a95a792c4b326fcde71b8 100644
--- a/lib/query.py
+++ b/lib/query.py
@@ -42,19 +42,16 @@ def lta_on_error_print(func):
 
 def parse_config(path=None):
     default_path = expanduser("~/.siplibrc")
+    test_path = pkg_resources.resource_string(__name__, "etc/.siplibrc")
     config = ConfigParser()
     if path:
-        config_path = path
+        config_paths = [path]
     else:
-        config_path = default_path
+        config_paths = [default_path, test_path]
 
-    found = config.read([config_path])
+    found = config.read(config_paths)
     if not found:
-        test_path = pkg_resources.resource_string(__name__, "etc/.siplibrc")
-        logging.warning("No configuration file found read {}".format(test_path))
-        found = config.read([test_path])
-        if not found:
-            raise SystemExit(f'Cannot find configuration files {default_path}: please create one')
+        raise SystemExit(f'Cannot find configuration file in {config_paths}: please create one')
 
     return config