Skip to content

Commit 96c7d77

Browse files
committed
Do not catch error of getting cron class
1 parent 89ba5cc commit 96c7d77

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

django_cron/management/commands/runcrons.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ def handle(self, *args, **options):
4242
else:
4343
cron_class_names = getattr(settings, 'CRON_CLASSES', [])
4444

45-
try:
46-
crons_to_run = [get_class(x) for x in cron_class_names]
47-
except Exception:
48-
error = traceback.format_exc()
49-
self.stdout.write('Make sure these are valid cron class names: %s\n%s' % (cron_class_names, error))
50-
return
45+
crons_to_run = [get_class(x) for x in cron_class_names]
5146

5247
for cron_class in crons_to_run:
5348
run_cron_with_cache_check(

0 commit comments

Comments
 (0)