Catch all errors from requests, not just HTTPError

This commit is contained in:
Danielle McLean 2023-08-16 11:52:43 +10:00
parent 4f081c8d34
commit 95cca433bc
Signed by: 00dani
GPG Key ID: 52C059C3B22A753E
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from requests import HTTPError
from requests.exceptions import RequestException
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
from typing import Dict, Optional, Set
@ -24,7 +24,7 @@ class Client:
apps = mf2("h-x-app") = apps[0]["properties"]
except (HTTPError, IndexError):
except (RequestException, IndexError): = None