mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
fixes #604 catch method not found for handling pyperclip not found
This commit is contained in:
parent
7439e244a6
commit
14bce0dd12
@ -287,12 +287,12 @@ def copy_flow(part, scope, flow, master, state):
|
||||
try:
|
||||
master.add_event(str(len(data)))
|
||||
pyperclip.copy(data)
|
||||
except (RuntimeError, UnicodeDecodeError):
|
||||
except (RuntimeError, UnicodeDecodeError, AttributeError):
|
||||
def save(k):
|
||||
if k == "y":
|
||||
ask_save_path("Save data", data, master, state)
|
||||
signals.status_prompt_onekey.send(
|
||||
prompt = "Cannot copy binary data to clipboard. Save as file?",
|
||||
prompt = "Cannot copy data to clipboard. Save as file?",
|
||||
keys = (
|
||||
("yes", "y"),
|
||||
("no", "n"),
|
||||
|
Loading…
Reference in New Issue
Block a user