We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4926010 commit e05c66cCopy full SHA for e05c66c
src/actinia/actinia.py
@@ -92,7 +92,7 @@ def __check_version(self):
92
self.__check_version()
93
else:
94
raise Exception(
95
- f"Connection to actinia server <{self.url}> failed!"
+ "Connection to actinia server <%s> failed!", self.url
96
)
97
98
def get_version(self):
@@ -151,7 +151,9 @@ def __request_locations(self):
151
loc_response = request_and_check(
152
"GET", url, **{"timeout": self.timeout, "auth": (self.__auth)}
153
154
- loc_names = loc_response.get("locations") or loc_response.get("projects")
+ loc_names = loc_response.get("locations") or loc_response.get(
155
+ "projects"
156
+ )
157
if not loc_names:
158
raise Exception("Authentication is not set.")
159
0 commit comments