From 800464d8956d03ef5c5c1a8eba9af86c00b3f201 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Feb 2022 17:28:14 +0000 Subject: [PATCH] Getting instance actor file --- utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.py b/utils.py index 8b7eca7ca..add6b09af 100644 --- a/utils.py +++ b/utils.py @@ -695,6 +695,8 @@ def save_json(json_object: {}, filename: str) -> bool: def load_json(filename: str, delay_sec: int = 2, max_tries: int = 5) -> {}: """Makes a few attempts to load a json formatted file """ + if '/Actor@' in filename: + filename = filename.replace('/Actor@', '/inbox@') json_object = None tries = 0 while tries < max_tries: