fix(aurora): check type of dictionary in debug log

This commit is contained in:
Seaswimmer 2024-05-06 15:06:10 -04:00
parent e14845ef85
commit 5be5a39c54
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -277,7 +277,7 @@ class Change(AuroraBaseModel):
@classmethod
def from_dict(cls, bot: Red, data: dict) -> "Change":
logger.debug("Creating Change from dict: %s", data)
logger.debug("Creating Change from dict (%s): %s", type(data), data)
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta):
hours, minutes, seconds = map(int, data["duration"].split(':'))
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)