mirror of https://gitlab.com/bashrc2/epicyon
Only print with debug
parent
32baf6b41f
commit
85897ca526
6
like.py
6
like.py
|
@ -254,8 +254,9 @@ def sendUndoLikeViaServer(baseDir: str, session,
|
|||
print('DEBUG: announce webfinger failed for ' + handle)
|
||||
return 1
|
||||
if not isinstance(wfRequest, dict):
|
||||
print('WARN: Webfinger for ' + handle + ' did not return a dict. ' +
|
||||
str(wfRequest))
|
||||
if debug:
|
||||
print('WARN: Webfinger for ' + handle +
|
||||
' did not return a dict. ' + str(wfRequest))
|
||||
return 1
|
||||
|
||||
postToBox = 'outbox'
|
||||
|
@ -287,6 +288,7 @@ def sendUndoLikeViaServer(baseDir: str, session,
|
|||
postResult = postJson(session, newUndoLikeJson, [], inboxUrl,
|
||||
headers, 30, True)
|
||||
if not postResult:
|
||||
if debug:
|
||||
print('WARN: POST announce failed for c2s to ' + inboxUrl)
|
||||
return 5
|
||||
|
||||
|
|
Loading…
Reference in New Issue