Fix format string in UnknownTherapyEventType.

%s was missing from the format string. This enhances the message to
report the unexpected thearpy type along with the dump of the event that
trigger the exception.
This commit is contained in:
Ryan Stutsman
2022-08-26 10:53:50 -04:00
committed by James Woglom
parent fca7f573a3
commit ec84afdb7a
+2 -1
View File
@@ -215,4 +215,5 @@ class UnknownBasalSuspensionEventException(Exception):
class UnknownTherapyEventException(Exception):
def __init__(self, data):
super().__init__("Unknown therapy event type: " % data)
typ = data["type"]
super().__init__(f"Unknown therapy event type: {typ} in {data}")