mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
ccab03cc2a
commit
37705456aa
|
@ -334,10 +334,9 @@ def update_inbox_queue(self, nickname: str, message_json: {},
|
||||||
http_400(self)
|
http_400(self)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
return 3
|
return 3
|
||||||
# check that some fields are lists
|
# check attachment is a list or dict
|
||||||
if debug:
|
if debug:
|
||||||
print('INBOX: checking object to and cc fields')
|
print('INBOX: checking attachment is a list or dict')
|
||||||
# check attachment
|
|
||||||
if message_json['object'].get('attachment'):
|
if message_json['object'].get('attachment'):
|
||||||
if not isinstance(message_json['object']['attachment'], list) and \
|
if not isinstance(message_json['object']['attachment'], list) and \
|
||||||
not isinstance(message_json['object']['attachment'], dict):
|
not isinstance(message_json['object']['attachment'], dict):
|
||||||
|
@ -346,6 +345,9 @@ def update_inbox_queue(self, nickname: str, message_json: {},
|
||||||
http_400(self)
|
http_400(self)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
return 3
|
return 3
|
||||||
|
# check that some fields are lists
|
||||||
|
if debug:
|
||||||
|
print('INBOX: checking object to and cc fields')
|
||||||
# check to and cc fields
|
# check to and cc fields
|
||||||
list_fields = ('to', 'cc')
|
list_fields = ('to', 'cc')
|
||||||
for check_field in list_fields:
|
for check_field in list_fields:
|
||||||
|
|
Loading…
Reference in New Issue