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