Skip to content

Commit ff0dd4f

Browse files
authored
Remove login warnings from Connection (#330)
1 parent 67783a1 commit ff0dd4f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

python/hopsworks_common/connection.py

-13
Original file line numberDiff line numberDiff line change
@@ -415,19 +415,6 @@ def connect(self) -> None:
415415
self._connected = False
416416
raise
417417

418-
_client = client.get_instance()
419-
if _client._is_external() and not _client._project_name:
420-
warnings.warn(
421-
"Connected to Hopsworks. You must provide a project name to access project resources. "
422-
"Use `connection.get_project('my_project')`.",
423-
stacklevel=2,
424-
)
425-
else:
426-
print(
427-
"Connected. Call `.close()` to terminate connection gracefully.",
428-
flush=True,
429-
)
430-
431418
self._check_compatibility()
432419

433420
@connected

0 commit comments

Comments
 (0)