fix(aurora): fixed an unboundlocalerror in Change.from_dict()
This commit is contained in:
parent
dc44e8c6de
commit
b03ce04245
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class Change(AuroraBaseModel):
|
|||
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)
|
||||
elif duration in data and isinstance(data["duration"], timedelta):
|
||||
elif "duration" in data and isinstance(data["duration"], timedelta):
|
||||
duration = data["duration"]
|
||||
else:
|
||||
duration = None
|
||||
|
|
Loading…
Reference in a new issue