Commits

iorodeo  committed c7a3d1d Draft

Fixed h5py exception issue.

  • Participants
  • Parent commits d898632

Comments (0)

Files changed (1)

File software/gui/nodes/sled_control.py

             filename = str(filename)
             try:
                 self.runFileReader = HDF5_Run_Reader(filename)
-            except h5py.h5e.LowLevelIOError, e:
+            except IOError, e:
                 self.cleanUpRunFile()
                 self.writeStatusMessage('run file load failed: %s'%(str(e),))
                 QtGui.QMessageBox.critical(self,'Error', 'run file load failed: %s'%(str(e),))
             if os.path.isfile(filename):
                 try:
                     f = h5py.File(filename,'r')
-                except h5py.h5e.LowLevelIOError, e:
+                except IOError, e:
                     self.logFileName = None
                     QtGui.QMessageBox.critical(self,'Error', '%s'%(str(e),))
                     self.writeStatusMessage('unable to set log file: IO error')
                 # Top level item - Ok to delete
                 try:
                     f = h5py.File(self.logFileName)
-                except h5py.h5e.LowLevelIOError, e:
+                except IOError, e:
                     msg = 'unable to open log file: %s'%(str(e),)
                     QtGui.QMessageBox.critical(self,msgBoxtitle,msg)
                     return
         if os.path.isfile(self.logFileName):
             try:
                 f = h5py.File(self.logFileName,'r')
-            except h5py.h5e.LowLevelIOError, e:
+            except IOError, e:
                 return
             logTopLevelList = list(f)
             logTopLevelList.sort(cmp=logFileCmpFunc)
                 return
             try:
                 f = h5py.File(self.logFileName,'r')
-            except h5py.h5e.LowLevelIOError, e:
+            except IOError, e:
                 return
             try:
                 dataValues = f[fullName]