Small util to decide which config to use.

This commit is contained in:
Pablo Martin 2022-08-22 15:02:21 +02:00
parent 560381f57b
commit c8cc49a678

View file

@ -18,6 +18,9 @@ def compose_config(
""" """
if config is not None: if config is not None:
DeprecationWarning(
"Usage of a full config file will be deprecated. Instead, use the credentials and queries arguments."
)
return json.load(config) return json.load(config)
if credentials is None or queries is None: if credentials is None or queries is None: