Return values if invalid url

main
Bob Mottram 2021-12-31 10:15:51 +00:00
parent 19bd33e885
commit 0d5038f204
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ def post_json_string(session, post_jsonStr: str,
if not url_permitted(inbox_url, federation_list): if not url_permitted(inbox_url, federation_list):
if not quiet: if not quiet:
print('post_json_string: ' + inbox_url + ' not permitted') print('post_json_string: ' + inbox_url + ' not permitted')
return None, None, 0 return False, True, 0
try: try:
post_result = \ post_result = \