pyslk.login_valid#
- pyslk.login_valid(quiet: bool = False, rise_error_on_invalid: bool = False) bool #
Check if a valid login token exists.
Raises ‘PySlkNoValidLoginTokenError’ when ‘rise_error_on_invalid’ is True.
Code calling this function might raise PySlkNoValidLoginTokenError if this functions returns False.
- Parameters:
quiet (bool) – print no warnings when the slk config file cannot be properly interpreted
rise_error_on_invalid (bool) – raise a ‘PySlkNoValidLoginTokenError’ when no valid token is present
- Returns: