diff --git a/lemonauth/views/tokens/list.py b/lemonauth/views/tokens/list.py index 179621c..1912937 100644 --- a/lemonauth/views/tokens/list.py +++ b/lemonauth/views/tokens/list.py @@ -1,4 +1,4 @@ -from requests.exceptions import RequestException +from requests import HTTPError 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 (RequestException, IndexError): + except (HTTPError, IndexError): self.app = None diff --git a/package.json b/package.json index c3f8bb9..24a2793 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lemoncurry", - "version": "1.12.4", + "version": "1.12.3", "repository": "https://git.00dani.me/00dani/lemoncurry", "license": "MIT", "devDependencies": { diff --git a/pyproject.toml b/pyproject.toml index d0d38a0..8480462 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lemoncurry" -version = "1.12.4" +version = "1.12.3" description = "Indieweb-compatible personal website" authors = ["Danielle McLean "] license = "MIT"