Skip to content

Commit

Permalink
ignore ConstructError by decoding and recognizing
Browse files Browse the repository at this point in the history
  • Loading branch information
baskiton committed Apr 14, 2024
1 parent 3dabe3a commit 13c8a61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SatsDecoder/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

from tkinter import ttk, filedialog, messagebox, scrolledtext

import construct
import numpy as np
import PIL
import PIL.Image
Expand Down Expand Up @@ -788,6 +789,11 @@ def feed(self, frame):
f.write(str(packet))

self.history_frame.put(*args, date=date)

except construct.ConstructError:
# TODO: log it
pass

except Exception as e:
messagebox.showerror(message='feed %s: %s' % (self.name, e))
return 1
Expand Down

0 comments on commit 13c8a61

Please sign in to comment.