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

    rda2208a rd3c8759  
    165165def copy_file(src, dest, size=1024):
    166166    """
    167     Exceedingly simple file copy.  Throws an IOError if there's a problem.
     167    Exceedingly simple file copy.  Throws an EnvironmentError if there's a problem.
    168168    """
    169169    s = open(src,'r')
     
    203203            lf.close()
    204204            ok = True
    205         except IOError, e:
     205        except EnvironmentError, e:
    206206            failed_excpetion = e
    207207            retries += 1
Note: See TracChangeset for help on using the changeset viewer.