fix(babel): Fallback on empty locale.

This commit is contained in:
2023-10-08 09:41:10 +03:00
parent 0190982291
commit 397d488732
2 changed files with 6 additions and 3 deletions

View File

@@ -780,7 +780,7 @@ class Timer:
logger.info(f"Timer {self!r} has stopped. Auto restart is {'on' if auto_restart else 'off'}")
@log_wrap(action="Destroy Timer")
async def destroy(self, reason: str = None):
async def destroy(self, reason: Optional[str] = None):
"""
Deconstructs the timer, stopping all tasks.
"""