File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def has_webfinger_support(hostname):
173173
174174def webfinger (hostname , uri ):
175175 template = _get_webfinger_url (hostname )
176- assert template
176+ assert template , "missing webfinger url template for %s" % hostname
177177
178178 with convert_exceptions (ActorNotFound ):
179179 content = web .getUrlContent (
@@ -280,7 +280,7 @@ def get_actor(localuser, hostname):
280280def get_resource_from_url (url ):
281281 content = signed_request (url , headers = {"Accept" : ACTIVITY_MIMETYPE })
282282
283- assert content is not None
283+ assert content is not None , "Content from %s is None" % url
284284
285285 with convert_exceptions (ActivityPubProtocolError , "Invalid JSON: " , True ):
286286 return json .loads (content .decode ())
You can’t perform that action at this time.
0 commit comments