mirror of https://gitlab.com/bashrc2/epicyon
Check that returned json is a dict
parent
cdd9550223
commit
1dc062b1d8
|
@ -1543,6 +1543,7 @@ def _get_post_title_reply_html(base_dir: str,
|
||||||
headers, None, debug,
|
headers, None, debug,
|
||||||
__version__, http_prefix, domain)
|
__version__, http_prefix, domain)
|
||||||
if reply_post_json:
|
if reply_post_json:
|
||||||
|
if isinstance(reply_post_json, dict):
|
||||||
obj_json = reply_post_json
|
obj_json = reply_post_json
|
||||||
if has_object_dict(reply_post_json):
|
if has_object_dict(reply_post_json):
|
||||||
obj_json = reply_post_json['object']
|
obj_json = reply_post_json['object']
|
||||||
|
|
Loading…
Reference in New Issue