##// END OF EJS Templates
catch OSError instead of IOError on getcwd(), closes \#169
vivainio -
Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.'
6 6
7 7 This file contains all the classes and helper functions specific to IPython.
8 8
9 $Id: iplib.py 2423 2007-06-11 16:47:22Z vivainio $
9 $Id: iplib.py 2427 2007-06-11 17:17:58Z vivainio $
10 10 """
11 11
12 12 #*****************************************************************************
@@ -351,7 +351,7 b' class InteractiveShell(object,Magic):'
351 351 # list of visited directories
352 352 try:
353 353 self.dir_hist = [os.getcwd()]
354 except IOError, e:
354 except OSError:
355 355 self.dir_hist = []
356 356
357 357 # dict of output history
General Comments 0
You need to be logged in to leave comments. Login now