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/ns2topdl.py

    rda2208a rd3c8759  
    5555            try:
    5656                read_simple_accessdb(access_db, self.auth, 'ns2topdl')
    57             except IOError, e:
     57            except EnvironmentError, e:
    5858                raise service_error(service_error.internal,
    5959                        "Error reading accessDB %s: %s" % (access_db, e))
     
    8686        try:
    8787            tmpdir = tempfile.mkdtemp(prefix="ns2topdl-")
    88         except IOError:
     88        except EnvironmentError:
    8989            raise service_error(service_error.internal, "Cannot create tmp dir")
    9090
     
    108108                    f.write(file_content)
    109109                    f.close()
    110                 except IOError:
     110                except EnvironmentError:
    111111                    raise service_error(service_error.internal,
    112112                            "Cannot write temp experiment description")
Note: See TracChangeset for help on using the changeset viewer.