removed str() cast and changed 'failed copy trying save instead' message

This commit is contained in:
Marcelo Glezer 2015-02-06 00:59:05 -03:00
parent 64c02a16c3
commit f49dcb0d91

View File

@ -224,7 +224,7 @@ def copy_message( k, master, state, message):
pyperclip.copy(message.get_decoded_content()) pyperclip.copy(message.get_decoded_content())
except TypeError: except TypeError:
master.prompt_onekey( master.prompt_onekey(
"Content is binary do you want to save it to a file instead?", "Cannot copy binary data to clipboard. Save as file?",
( (
("yes", "y"), ("yes", "y"),
("no", "n"), ("no", "n"),
@ -236,7 +236,7 @@ def copy_message( k, master, state, message):
) )
elif k == "h": elif k == "h":
try: try:
pyperclip.copy(str(message.headers)) pyperclip.copy(message.headers)
except TypeError: except TypeError:
master.statusbar.message("Error converting headers to text") master.statusbar.message("Error converting headers to text")
elif k == "u": elif k == "u":