Merge pull request #532 from tekii/master

handles UnicodeDecodeError (#531)
This commit is contained in:
Maximilian Hils 2015-03-25 12:47:13 +01:00
commit b0f60cf1f2

View File

@ -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)