diff options
-rw-r--r-- | hello-fusepy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hello-fusepy.py b/hello-fusepy.py index eed2371..366700b 100644 --- a/hello-fusepy.py +++ b/hello-fusepy.py @@ -67,6 +67,10 @@ class HelloWorld(Operations, LoggingMixIn): def load_statuses(self): url = api_url_template_ap.format(server=self.server, user=self.user) res = requests.get(url) + if res.status_code == 404: + self.statuses = [Status("not-found", "User not found\n", "1970-01-01T00:00:00Z")] + return + res.raise_for_status() stats = res.json() logging.debug(f"Status: ${stats['id']}") |