Skip to content

Commit 51f491d

Browse files
committed
Tweaked settings to not try to patch missing dev libs.
- Legacy-Id: 15018
1 parent 583d888 commit 51f491d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ietf/settings.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,9 +960,11 @@ def skip_unreadable_post(record):
960960
'patch/fix-patch-no-chdir.patch',
961961
]
962962
if DEBUG:
963-
CHECKS_LIBRARY_PATCHES_TO_APPLY += [
964-
'patch/add-django-cprofile-filter.patch',
965-
]
963+
try:
964+
import django_cprofile_middleware # pyflakes:ignore
965+
CHECKS_LIBRARY_PATCHES_TO_APPLY += [ 'patch/add-django-cprofile-filter.patch', ]
966+
except ImportError:
967+
pass
966968

967969
STATS_NAMES_LIMIT = 25
968970

0 commit comments

Comments
 (0)