mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +00:00
Merge pull request #532 from tekii/master
handles UnicodeDecodeError (#531)
This commit is contained in:
commit
b0f60cf1f2
@ -252,7 +252,7 @@ def copy_flow(part, scope, flow, master, state):
|
||||
try:
|
||||
master.add_event(str(len(data)))
|
||||
pyperclip.copy(data)
|
||||
except RuntimeError:
|
||||
except (RuntimeError, UnicodeDecodeError):
|
||||
def save(k):
|
||||
if k == "y":
|
||||
ask_save_path("Save data", data, master, state)
|
||||
|
Loading…
Reference in New Issue
Block a user