diff --git a/src/somef/__init__.py b/src/somef/__init__.py index 0f4dc532..04e3c63d 100644 --- a/src/somef/__init__.py +++ b/src/somef/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = "0.9.1" +__version__ = "0.9.3" diff --git a/src/somef/configuration.py b/src/somef/configuration.py index ce56b1d1..a9efd1a5 100644 --- a/src/somef/configuration.py +++ b/src/somef/configuration.py @@ -64,18 +64,18 @@ def configure(authorization="", ).expanduser() os.makedirs(str(credentials_file.parent), exist_ok=True) - if credentials_file.exists(): - with credentials_file.open("r") as fh: - data = json.load(fh) - else: - data = { - constants.CONF_AUTHORIZATION: "token " + authorization, - constants.CONF_DESCRIPTION: description, - constants.CONF_INVOCATION: invocation, - constants.CONF_INSTALLATION: installation, - constants.CONF_CITATION: citation, - constants.CONF_BASE_URI: base_uri - } + # if credentials_file.exists(): + # with credentials_file.open("r") as fh: + # data = json.load(fh) + # else: + data = { + constants.CONF_AUTHORIZATION: "token " + authorization, + constants.CONF_DESCRIPTION: description, + constants.CONF_INVOCATION: invocation, + constants.CONF_INSTALLATION: installation, + constants.CONF_CITATION: citation, + constants.CONF_BASE_URI: base_uri + } if data[constants.CONF_AUTHORIZATION] == "token ": del data[constants.CONF_AUTHORIZATION]