Skip to content

Commit c90b840

Browse files
authored
Improve message for user when falling back to device-code login (#199)
* Remove error message for user when finding chromium lockfile and falling back to device-code login
1 parent 0ecdfe4 commit c90b840

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/sumo/wrapper/_auth_provider.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def login(self):
207207
print(
208208
"\n\n \033[31m NOTE! \033[0m"
209209
+ " Please login to Equinor Azure to enable Sumo access: "
210-
+ "we opened a login web-page for you in your browser."
210+
+ "we are opening a login web-page for you in your browser."
211211
+ "\nYou should complete your login within "
212212
+ str(self._login_timeout_minutes)
213213
+ " minutes, "
@@ -422,11 +422,6 @@ def get_auth_provider(
422422
Path(lockfile_path).resolve()
423423
).__contains__(platform.node()):
424424
# https://github.com/equinor/sumo-wrapper-python/issues/193
425-
print(
426-
"Chromium lockfile points to another host, "
427-
f"you should delete {lockfile_path}. "
428-
"Falling back to device-code login now"
429-
)
430425
return AuthProviderDeviceCode(client_id, authority, resource_id)
431426
# ELSE
432427
return AuthProviderInteractive(client_id, authority, resource_id)

0 commit comments

Comments
 (0)