mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
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:
committed by
James Woglom
parent
fca7f573a3
commit
ec84afdb7a
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user