File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 88
99import timezone_field
1010from celery import current_app , schedules
11- from cron_descriptor import (FormatException , MissingFieldException ,
12- WrongArgumentException , get_description )
11+ from cron_descriptor import (FormatError , MissingFieldError ,
12+ WrongArgumentError , get_description )
1313from django .conf import settings
1414from django .core .exceptions import MultipleObjectsReturned , ValidationError
1515from django .core .validators import MaxValueValidator , MinValueValidator
@@ -339,11 +339,7 @@ def human_readable(self):
339339 )
340340 try :
341341 human_readable = get_description (cron_expression )
342- except (
343- MissingFieldException ,
344- FormatException ,
345- WrongArgumentException
346- ):
342+ except (FormatError , MissingFieldError , WrongArgumentError ):
347343 return f'{ cron_expression } { str (self .timezone )} '
348344 return f'{ human_readable } { str (self .timezone )} '
349345
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ django-timezone-field>=5.0
44backports.zoneinfo; python_version<"3.9"
55tzdata
66python-crontab>=2.3.4
7- cron-descriptor>=1.2.32
7+ cron-descriptor>=2.0.0
You can’t perform that action at this time.
0 commit comments