Skip to content

Commit 0001372

Browse files
committed
fix(purge): replace CroniterError with CroniterBadCronError
For more accurate error handling.
1 parent 863842f commit 0001372

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

purge/purge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import discord
77
from croniter import croniter
8-
from croniter.croniter import CroniterError
8+
from croniter.croniter import CroniterBadCronError
99
from redbot.core import Config, checks, commands
1010

1111

@@ -38,7 +38,7 @@ async def set_crontab(self, guild, crontab):
3838
croniter(crontab)
3939
await self.config.guild(guild).schedule.set(crontab)
4040
return crontab
41-
except CroniterError:
41+
except CroniterBadCronError:
4242
return False
4343

4444
async def check_purgeable_users(self):

0 commit comments

Comments
 (0)