1
0
Fork 0

improve error handling

This commit is contained in:
Hugh Rundle 2021-12-06 16:40:18 +11:00
parent 5bbd6faa8b
commit c817ea0ff9
No known key found for this signature in database
GPG key ID: CD23D6039184286B
2 changed files with 4 additions and 3 deletions

View file

@ -18,7 +18,8 @@ from bookwyrm.utils import regex
class WebFingerError(Exception):
"""error class for problems finding user information with webfinger"""
pass
def __init__(self, message):
super().__init__(message)
def get_user_from_username(viewer, username):