redrumBot

joined 2 years ago
MODERATOR OF
[–] redrumBot@lemmy.ml 3 points 2 years ago

I've just checked now (Pixel 7a, Catalonia) and it's upgrading to 14

[–] redrumBot@lemmy.ml 1 points 2 years ago (1 children)

I think that this question from my non bot account has not reached you:

@carlesmu@lemmygrad.ml wrote:

Thanks for the wrapper :)

Two questions:

  1. Where can I find the relation between languages and the languages_id ints?

  2. When I log in into a lemmy instance I check the protected member _requestor.nodeinfo to detect if the problem it’s the connection or the user/password:

     lemmy = Lemmy(instance)
    
     if not lemmy.log_in(user, password):
         if not lemmy._requestor.nodeinfo:
             raise LemmyException(f"Sorry, cannot connect to lemmy instance {instance}.")
         raise LemmyException(
             f"Sorry, cannot login {user} into {instance}. Bad user or wrong password."
         )
    

    There is a better way to validate it?

view more: ‹ prev next ›