Skip to content

Commit 0605a5b

Browse files
author
Tejas Saubhage
committed
Fix import history cleanup: add logging for System_Settings.DoesNotExist
1 parent 5fc007b commit 0605a5b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dojo/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def _async_import_history_cleanup_impl():
221221
max_history = system_settings.max_import_history
222222
max_per_run = settings.IMPORT_HISTORY_MAX_PER_OBJECT
223223
except System_Settings.DoesNotExist:
224+
logger.error('System_Settings not found, skipping import history cleanup')
224225
return
225226

226227
if max_history is None:

0 commit comments

Comments
 (0)