From 95cca433bc71b15c6651adb927f48a4e2d3f866a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 16 Aug 2023 11:52:43 +1000 Subject: [PATCH 1/2] Catch all errors from requests, not just HTTPError --- lemonauth/views/tokens/list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonauth/views/tokens/list.py b/lemonauth/views/tokens/list.py index 1912937..179621c 100644 --- a/lemonauth/views/tokens/list.py +++ b/lemonauth/views/tokens/list.py @@ -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 From c398b0d3f4880fff064fcf39338b240db1499113 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 16 Aug 2023 11:52:59 +1000 Subject: [PATCH 2/2] v1.12.4 --- package.json | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 24a2793..c3f8bb9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lemoncurry", - "version": "1.12.3", + "version": "1.12.4", "repository": "https://git.00dani.me/00dani/lemoncurry", "license": "MIT", "devDependencies": { diff --git a/pyproject.toml b/pyproject.toml index 8480462..d0d38a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lemoncurry" -version = "1.12.3" +version = "1.12.4" description = "Indieweb-compatible personal website" authors = ["Danielle McLean "] license = "MIT"