diff --git a/spaceapi/active.py b/spaceapi/active.py --- a/spaceapi/active.py +++ b/spaceapi/active.py @@ -23,7 +23,7 @@ def reload_json(): with open(default_json_file, encoding='utf-8') as f: default_json = json.load(f) - if os.path.exists(last_state_file): + if os.path.exists(last_state_file) and os.path.isfile(last_state_file): with open(last_state_file, encoding='utf-8') as f: active_json = json.load(f)