Skip to content

Commit

Permalink
Fix format string in UnknownTherapyEventType.
Browse files Browse the repository at this point in the history
%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.
  • Loading branch information
rstutsman authored and jwoglom committed Aug 26, 2022
1 parent fca7f57 commit ec84afd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tconnectsync/parser/tconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,5 @@ def __init__(self, data):

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}")

0 comments on commit ec84afd

Please sign in to comment.