Compare commits

...

2 commits

Author SHA1 Message Date
Danielle McLean c398b0d3f4
v1.12.4 2023-08-16 11:52:59 +10:00
Danielle McLean 95cca433bc
Catch all errors from requests, not just HTTPError 2023-08-16 11:52:43 +10:00
3 changed files with 4 additions and 4 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:
try:
apps = mf2(self.id).to_dict(filter_by_type="h-x-app")
self.app = apps[0]["properties"]
except (HTTPError, IndexError):
except (RequestException, IndexError):
self.app = None

View file

@ -1,6 +1,6 @@
{
"name": "lemoncurry",
"version": "1.12.3",
"version": "1.12.4",
"repository": "https://git.00dani.me/00dani/lemoncurry",
"license": "MIT",
"devDependencies": {

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "lemoncurry"
version = "1.12.3"
version = "1.12.4"
description = "Indieweb-compatible personal website"
authors = ["Danielle McLean <dani@00dani.me>"]
license = "MIT"