Skip to content
Snippets Groups Projects

F deprecate getusername

Merged Henrik tom Wörden requested to merge f-deprecate-getusername into dev
2 files
+ 3
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -757,6 +757,8 @@ class _Connection(object): # pylint: disable=useless-object-inheritance
Shortcut for: get_connection()._authenticator._credentials_provider.username
"""
warnings.warn("Deprecated. Please use ``la.Info().user_info.name`` instead.",
DeprecationWarning)
if self._authenticator is None:
raise ValueError(
"No authenticator set. Please call configure_connection() first.")
Loading