Don't trap any copying errors - allow them to bubble up.

Jason Grout 11 years ago
parent 009dcf43cf
commit 3f3012a4d4

@ -77,10 +77,7 @@ def _maybe_copy(src, dest, verbose=1):
if _should_copy(src, dest, verbose):
if verbose >= 1:
print("copying %s -> %s" % (src, dest))
try:
shutil.copy2(src, dest)
except IOError as e:
print(str(e), file=sys.stderr)
shutil.copy2(src, dest)
def _safe_is_tarfile(path):
"""safe version of is_tarfile, return False on IOError"""

Loading…
Cancel
Save