Ignore:
Timestamp:
May 25, 2010 11:15:55 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
f038da1
Parents:
da2208a
Message:

Wholesale change of IOError to EnvironmentError? for file operations. Lots of
uncaught EnvironmentErrors? were causing spurious error conditions, e.g. on disk
full.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/deter_internal_access.py

    rda2208a rd3c8759  
    220220                f = open(self.state_filename, 'w')
    221221                pickle.dump(self.state, f)
    222             except IOError, e:
     222            except EnvironmentError, e:
    223223                self.log.error("Can't write file %s: %s" % \
    224224                        (self.state_filename, e))
     
    241241                self.log.debug("[read_state]: Read state from %s" % \
    242242                        self.state_filename)
    243             except IOError, e:
     243            except EnvironmentError, e:
    244244                self.log.warning(("[read_state]: No saved state: " +\
    245245                        "Can't open %s: %s") % (self.state_filename, e))
     
    422422                print >>f, alloc_cert
    423423                f.close()
    424             except IOError, e:
     424            except EnvironmentError, e:
    425425                raise service_error(service_error.internal,
    426426                        "Can't open %s/%s : %s" % (self.certdir, aid, e))
Note: See TracChangeset for help on using the changeset viewer.