Skip to content

Commit

Permalink
Also log incomplete base64 data for notification requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 15, 2024
1 parent 4811533 commit 5a77ea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kitty/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def add_base64_data(self, data: Union[str, bytes]) -> None:
self.data_store(decoded)

def flush_encoded_data(self) -> None:
if self.decoder.needs_more_data():
log_error('Received incomplete encoded data for notification request')
self.decoder.reset()

def finalise(self) -> bytes:
Expand Down

0 comments on commit 5a77ea6

Please sign in to comment.