From 6b5ad2f24ba8f2ce54dccad94a129bced625af7c 2015-01-22 20:47:10 From: Jason Grout Date: 2015-01-22 20:47:10 Subject: [PATCH] Copy as much of the nbextension as we can, even if there are errors for some of the files. --- diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py index 297a161..0b51b56 100644 --- a/IPython/html/nbextensions.py +++ b/IPython/html/nbextensions.py @@ -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"""