forked from indymedia/epicyon
Tidying
parent
ac38dbbb36
commit
4d5b75c982
|
@ -976,7 +976,12 @@ if args.actor:
|
|||
if personJson:
|
||||
pprint(personJson)
|
||||
else:
|
||||
print('Failed to get '+personUrl)
|
||||
asHeader = {'Accept': 'application/jrd+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
personJson = getJson(session,personUrl,asHeader,None,__version__,httpPrefix,None)
|
||||
if personJson:
|
||||
pprint(personJson)
|
||||
else:
|
||||
print('Failed to get '+personUrl)
|
||||
sys.exit()
|
||||
|
||||
if args.addaccount:
|
||||
|
|
|
@ -58,7 +58,7 @@ def webfingerHandle(session,handle: str,httpPrefix: str,cachedWebfingers: {}, \
|
|||
par = {'resource': 'acct:{}'.format(nickname+'@'+wfDomain)}
|
||||
hdr = {'Accept': 'application/jrd+json'}
|
||||
try:
|
||||
result = getJson(session, url, hdr, par,projectVersion,httpPrefix,fromDomain)
|
||||
result = getJson(session,url,hdr,par,projectVersion,httpPrefix,fromDomain)
|
||||
except Exception as e:
|
||||
print("Unable to webfinger " + url)
|
||||
print('nickname: '+str(nickname))
|
||||
|
|
Loading…
Reference in New Issue