diff --git a/IPython/iplib.py b/IPython/iplib.py index c6515ef..0de50ec 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -2209,7 +2209,7 @@ class InteractiveShell(object,Magic): try: code = self.compile(source,filename,symbol) - except (OverflowError, SyntaxError, ValueError, TypeError): + except (OverflowError, SyntaxError, ValueError, TypeError, MemoryError): # Case 1 self.showsyntaxerror(filename) return None