mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
fix flake8 warnings
This commit is contained in:
parent
a7f06061de
commit
fd1b571594
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import *
|
||||
from typing import TYPE_CHECKING, List, Callable
|
||||
from functools import wraps
|
||||
import sys
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue