We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a877e96 commit 79a4b78Copy full SHA for 79a4b78
1 file changed
btrdb/utils/credentials.py
@@ -92,7 +92,7 @@ def credentials_by_profile(name=None):
92
raise ProfileNotFound("Profile `{}` not found in credentials file.".format(name))
93
94
# rename api_key if needed and return
95
- fragment = creds[name]["btrdb"]
+ fragment = creds[name].get("btrdb", {})
96
if "api_key" in fragment:
97
fragment["apikey"] = fragment.pop("api_key")
98
return fragment
0 commit comments