Copy as much of the nbextension as we can, even if there are errors for some of the files.

Jason Grout 11 years ago
parent a3d0a1764b
commit 3beb707717

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

Loading…
Cancel
Save