Revision d4c1bd12 lib/ssconf.py

b/lib/ssconf.py
69 69
             (because we decided it was already up-to-date)
70 70

  
71 71
    """
72
    cfg_stat = os.stat(self._file_name)
72
    try:
73
      cfg_stat = os.stat(self._file_name)
74
    except EnvironmentError, err:
75
      raise errors.ConfigurationError("Cannot stat config file %s: %s" %
76
                                      (self._file_name, err))
73 77
    inode = cfg_stat.st_ino
74 78
    mtime = cfg_stat.st_mtime
75 79
    size = cfg_stat.st_size
......
88 92

  
89 93
    try:
90 94
      self._config_data = serializer.Load(utils.ReadFile(self._file_name))
91
    except IOError, err:
95
    except EnvironmentError, err:
92 96
      raise errors.ConfigurationError("Cannot read config file %s: %s" %
93 97
                                      (self._file_name, err))
94 98
    except ValueError, err:

Also available in: Unified diff