Skip to content

Commit

Permalink
cli: missed a spec_or_dbfile var
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Oct 19, 2020
1 parent 08a4056 commit 8cbe038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emmet-cli/emmet/cli/utils.py
Expand Up @@ -63,7 +63,7 @@ def calcdb_from_mgrant(spec_or_dbfile):

client = Client()
role = "rw" # NOTE need write access to source to ensure indexes
host, dbname_or_alias = spec.split("/", 1)
host, dbname_or_alias = spec_or_dbfile.split("/", 1)
auth = client.get_auth(host, dbname_or_alias, role)
if auth is None:
raise Exception("No valid auth credentials available!")
Expand Down

0 comments on commit 8cbe038

Please sign in to comment.