From 65000c294cec7f8ad203b88177f42256eece5ed2 2008-05-05 12:37:54 From: vivainio2 Date: 2008-05-05 12:37:54 Subject: [PATCH] Fix crash when input: foo(**dict(k,d[k] for k in vn)) --- diff --git a/IPython/iplib.py b/IPython/iplib.py index c62761b..1bb1650 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -2016,7 +2016,7 @@ want to merge them back into the new files.""" % locals() try: code = self.compile(source,filename,symbol) - except (OverflowError, SyntaxError, ValueError): + except (OverflowError, SyntaxError, ValueError, TypeError): # Case 1 self.showsyntaxerror(filename) return None