Skip to content

Commit

Permalink
minor fix in portal_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Jan 10, 2024
1 parent 252818e commit 0cb38f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dcicutils/portal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def init_from_keys_file(keys_file: str, env: Optional[str], server: Optional[str
(key := [keys[k] for k in keys if normalize_server(keys[k].get("server")) == server])):
init_from_key(key[0], server)
self._keys_file = keys_file
elif len(keys) == 1 and (env := next(iter(keys))) and isinstance(key := keys[env], dict) and key:
elif not env and len(keys) == 1 and (env := next(iter(keys))) and isinstance(key := keys[env], dict):
init_from_key(key, server)
self._keys_file = keys_file
self._env = env
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicutils"
version = "8.7.0.1b23" # TODO: To become 8.7.1
version = "8.7.0.1b24" # TODO: To become 8.7.1
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down

0 comments on commit 0cb38f9

Please sign in to comment.