From 467d252b2b3df66a45e91b1aa5acc05e6088003b 2015-01-26 14:22:05 From: Jason Grout Date: 2015-01-26 14:22:05 Subject: [PATCH] Don't trap any copying errors - allow them to bubble up. --- diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py index 293ab81..0bc329b 100644 --- a/IPython/html/nbextensions.py +++ b/IPython/html/nbextensions.py @@ -77,10 +77,7 @@ def _maybe_copy(src, dest, verbose=1): if _should_copy(src, dest, verbose): if verbose >= 1: print("copying %s -> %s" % (src, dest)) - try: - shutil.copy2(src, dest) - except IOError as e: - print(str(e), file=sys.stderr) + shutil.copy2(src, dest) def _safe_is_tarfile(path): """safe version of is_tarfile, return False on IOError"""