From 213b5ed151ffae20e49b64e09249243c19bca254 2011-11-21 23:05:03 From: Thomas Kluyver Date: 2011-11-21 23:05:03 Subject: [PATCH] Format error message for %paste more clearly. --- diff --git a/IPython/frontend/terminal/interactiveshell.py b/IPython/frontend/terminal/interactiveshell.py index 25bcde3..f49b45f 100644 --- a/IPython/frontend/terminal/interactiveshell.py +++ b/IPython/frontend/terminal/interactiveshell.py @@ -617,7 +617,7 @@ class TerminalInteractiveShell(InteractiveShell): except TryNext as clipboard_exc: message = getattr(clipboard_exc, 'args') if message: - error(message) + error(message[0]) else: error('Could not get text from the clipboard.') return