mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-10-30 16:37:52 +00:00
crashing is annoying
This commit is contained in:
parent
44ba13b9fa
commit
216cf8b19a
1 changed files with 1 additions and 7 deletions
|
@ -64,13 +64,7 @@ def proxy(conn1: tlslite.TLSConnection, conn2: tlslite.TLSConnection, prefix: st
|
|||
try:
|
||||
override = printer.pretty_print_payload(prefix, apns._deserialize_payload_from_buffer(data))
|
||||
except Exception as e:
|
||||
if e == "Buffer is too short":
|
||||
print("Buffer is too short to parse, ignoring")
|
||||
# print("Buffer is too short, trying to read more")
|
||||
# data += conn1.read()
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
print(e) # Can't crash the proxy over parsing errors
|
||||
if override is not None:
|
||||
data = override
|
||||
print("OVERRIDE: ", end="")
|
||||
|
|
Loading…
Reference in a new issue