Don't crash when using naive time remaining (#119)

Editing a tuple is not allowed in Python, it needs to be either converted to a List or re-created.
This commit is contained in:
dkabot 2022-04-11 17:11:29 -04:00 committed by GitHub
parent 3da8232097
commit 90ebed1fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class DGUSStatus:
if self.finish_at is not None:
self.finish_at += pause_duration
if self.finish_at_naive is not None:
self.finish_at_naive[1] += pause_duration
self.finish_at_naive = (self.finish_at_naive[0], self.finish_at_naive[1] + pause_duration)
self.pause_at = None
return eventtime + 5.