Skip to content

Commit

Permalink
fix: added exception to fix EXTRA_MODEL_FIELDS compatability, fixes s…
Browse files Browse the repository at this point in the history
  • Loading branch information
Friso Harlaar committed Nov 10, 2022
1 parent d68d501 commit e77ebda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filebrowser_safe/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
from time import gmtime, localtime, strftime, time

from django.conf import settings as dj_settings
from django.core.exceptions import AppRegistryNotReady
from django.core.files.storage import default_storage

from filebrowser_safe import settings as fb_settings

try:
from mezzanine.utils.sites import current_site_id
except ImportError:
except (AppRegistryNotReady, ImportError) as e:
# TODO: filebrowser-safe should not rely on `current_site_id` at all since its
# provided by Mezzanine.
#
Expand Down

0 comments on commit e77ebda

Please sign in to comment.