Small util to decide which config to use.
This commit is contained in:
parent
560381f57b
commit
c8cc49a678
1 changed files with 3 additions and 0 deletions
3
utils.py
3
utils.py
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue