mirror of https://gitlab.com/bashrc2/epicyon
Show return value in debug mode
parent
21b9cd6514
commit
53eeb041fd
|
@ -451,7 +451,6 @@ def _receive_new_post_process_editblog(self, fields: {},
|
|||
save_json(post_json_object, post_filename)
|
||||
print('Edited blog post, resaved ' + post_filename)
|
||||
return NEW_POST_SUCCESS
|
||||
else:
|
||||
print('Edited blog post, unable to load json for ' +
|
||||
post_filename)
|
||||
else:
|
||||
|
@ -2266,6 +2265,7 @@ def receive_new_post(self, post_type, path: str,
|
|||
# otherwise any attachments can get mangled if
|
||||
# other events happen during their decoding
|
||||
print('Creating new post from: ' + new_post_thread_name)
|
||||
retval = \
|
||||
_receive_new_post_process(self, post_type,
|
||||
original_path,
|
||||
headers, length,
|
||||
|
@ -2302,4 +2302,7 @@ def receive_new_post(self, post_type, path: str,
|
|||
onion_domain,
|
||||
i2p_domain,
|
||||
max_shares_on_profile)
|
||||
if debug:
|
||||
print('DEBUG: _receive_new_post_process returned ' +
|
||||
str(retval))
|
||||
return page_number
|
||||
|
|
Loading…
Reference in New Issue