From 14bce0dd12c206162f62fff256cc58fac42db968 Mon Sep 17 00:00:00 2001 From: Marcelo Glezer Date: Mon, 1 Jun 2015 12:06:46 -0300 Subject: [PATCH] fixes #604 catch method not found for handling pyperclip not found --- libmproxy/console/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index 3180170d5..683faf8e8 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -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"),