forked from mirrors/bookwyrm
handle type errors
This commit is contained in:
parent
c3f24316a0
commit
5847bc1924
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ def remote_follow(request):
|
||||||
if remote_user[0] == "@":
|
if remote_user[0] == "@":
|
||||||
remote_user = remote_user[1:]
|
remote_user = remote_user[1:]
|
||||||
remote_domain = remote_user.split("@")[1]
|
remote_domain = remote_user.split("@")[1]
|
||||||
except IndexError:
|
except (TypeError, IndexError):
|
||||||
remote_domain = None
|
remote_domain = None
|
||||||
|
|
||||||
wf_response = subscribe_remote_webfinger(remote_user)
|
wf_response = subscribe_remote_webfinger(remote_user)
|
||||||
|
|
Loading…
Reference in a new issue