Skip to content

Commit

Permalink
Fix spelling typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SijmenHuizenga committed Feb 14, 2021
1 parent 6cf592f commit 55a3220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schedule/__init__.py
Expand Up @@ -451,7 +451,7 @@ def at(self, time_str):
if self.unit == "days" or self.start_day:
if not re.match(r"^([0-2]\d:)?[0-5]\d:[0-5]\d$", time_str):
raise ScheduleValueError(
"Invalid time format for an daily job (valid format is HH:MM(:SS)?)"
"Invalid time format for a daily job (valid format is HH:MM(:SS)?)"
)
if self.unit == "hours":
if not re.match(r"^([0-5]\d)?:[0-5]\d$", time_str):
Expand Down Expand Up @@ -528,7 +528,7 @@ def do(self, job_func: Callable, *args, **kwargs):
if self.scheduler is None:
raise ScheduleError(
"Unable to a add job to schedule. "
"Job is not associated with a scheduler"
"Job is not associated with an scheduler"
)
self.scheduler.jobs.append(self)
return self
Expand Down

0 comments on commit 55a3220

Please sign in to comment.