From e7a65062e21e7bfde184d2229f0a842a91eacc56 2012-06-30 14:29:10 From: Matthias BUSSONNIER Date: 2012-06-30 14:29:10 Subject: [PATCH] use explicit tuple in exception fixes #2056 --- diff --git a/IPython/core/magics/osm.py b/IPython/core/magics/osm.py index f761513..d26b533 100644 --- a/IPython/core/magics/osm.py +++ b/IPython/core/magics/osm.py @@ -684,7 +684,7 @@ class OSMagics(Magics): try : cont = self.shell.find_user_code(parameter_s) - except ValueError, IOError: + except (ValueError, IOError): print "Error: no such file, variable, URL, history range or macro" return