fix flake8 warnings

This commit is contained in:
Finn-Thorben Sell 2022-03-24 13:37:18 +01:00
parent a7f06061de
commit fd1b571594
No known key found for this signature in database
GPG key ID: A78A03C25A3A3825
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
from typing import *
from typing import TYPE_CHECKING, List, Callable
from functools import wraps
import sys
import os

View file

@ -7,7 +7,7 @@ from django.core import validators
from django.core.exceptions import ValidationError, ImproperlyConfigured
from django.utils.module_loading import import_string
from .errors import ValueRetrievalError, ValueProcessingError, ConfigurationError
from .errors import ValueRetrievalError, ValueProcessingError
from .utils import getargspec
@ -311,7 +311,7 @@ class BackendsValue(ListValue):
try:
import_string(value)
except ImportError as err:
raise ValueProcessingError(self, value)
raise ValueProcessingError(self, value) from err
return value