From 499c8162a20a229a20fc5cbe4f4790990926f526 2015-01-27 19:55:15 From: Jason Grout Date: 2015-01-27 19:55:15 Subject: [PATCH] Delete unnecessary if branch Thanks to @takluyver for the review comment. --- diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py index 651ed06..7a1a3fb 100644 --- a/IPython/html/nbextensions.py +++ b/IPython/html/nbextensions.py @@ -204,8 +204,6 @@ def install_nbextension(path, overwrite=False, symlink=False, user=False, prefix archive = zipfile.ZipFile(path) elif _safe_is_tarfile(path): archive = tarfile.open(path) - else: - raise ValueError("Could not extract archive") archive.extractall(nbext) archive.close() else: