##// END OF EJS Templates
Don't trap any copying errors - allow them to bubble up.
Jason Grout -
Show More
@@ -77,10 +77,7 b' def _maybe_copy(src, dest, verbose=1):'
77 if _should_copy(src, dest, verbose):
77 if _should_copy(src, dest, verbose):
78 if verbose >= 1:
78 if verbose >= 1:
79 print("copying %s -> %s" % (src, dest))
79 print("copying %s -> %s" % (src, dest))
80 try:
80 shutil.copy2(src, dest)
81 shutil.copy2(src, dest)
82 except IOError as e:
83 print(str(e), file=sys.stderr)
84
81
85 def _safe_is_tarfile(path):
82 def _safe_is_tarfile(path):
86 """safe version of is_tarfile, return False on IOError"""
83 """safe version of is_tarfile, return False on IOError"""
General Comments 0
You need to be logged in to leave comments. Login now