From 3246ff9e1bef3833bbb45b2ae9db347362769c3c Mon Sep 17 00:00:00 2001 From: Bart van der Schoor Date: Thu, 14 Mar 2024 14:06:00 +0100 Subject: [PATCH] [#2199] Fixed import error --- src/open_inwoner/configurations/tests/test_emails.py | 4 ++++ src/open_inwoner/kvk/client.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/open_inwoner/configurations/tests/test_emails.py b/src/open_inwoner/configurations/tests/test_emails.py index 4b737f5ee0..fbdcda7a05 100644 --- a/src/open_inwoner/configurations/tests/test_emails.py +++ b/src/open_inwoner/configurations/tests/test_emails.py @@ -11,6 +11,10 @@ # TODO update to django-mailer # from django_yubin.models import Log, Message +# silence flake8 before refactor +Message = object +Log = object + @skip("update this to use django-mailer instead of django-yubin") class DailyFailingEmailDigestTestCase(TestCase): diff --git a/src/open_inwoner/kvk/client.py b/src/open_inwoner/kvk/client.py index 600284a97e..09d4ac68f3 100644 --- a/src/open_inwoner/kvk/client.py +++ b/src/open_inwoner/kvk/client.py @@ -4,7 +4,7 @@ from urllib.parse import urlencode import requests -from simplejson.errors import JSONDecodeError +from requests.exceptions import JSONDecodeError from .constants import CompanyType from .models import KvKConfig