Show More
@@ -75,8 +75,10 b' def _maybe_copy(src, dest, verbose=1):' | |||||
75 | if _should_copy(src, dest, verbose): |
|
75 | if _should_copy(src, dest, verbose): | |
76 | if verbose >= 1: |
|
76 | if verbose >= 1: | |
77 | print("copying %s -> %s" % (src, dest)) |
|
77 | print("copying %s -> %s" % (src, dest)) | |
78 | shutil.copy2(src, dest) |
|
78 | try: | |
79 |
|
79 | shutil.copy2(src, dest) | ||
|
80 | except IOError as e: | |||
|
81 | print(str(e), file=sys.stderr) | |||
80 |
|
82 | |||
81 | def _safe_is_tarfile(path): |
|
83 | def _safe_is_tarfile(path): | |
82 | """safe version of is_tarfile, return False on IOError""" |
|
84 | """safe version of is_tarfile, return False on IOError""" |
General Comments 0
You need to be logged in to leave comments.
Login now