浏览代码

raise not pass on non-EEXIST

Min RK 8 年之前
父节点
当前提交
6e057ab66d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jupyterlab/commands.py

+ 1 - 1
jupyterlab/commands.py

@@ -244,7 +244,7 @@ def _write_config(data, config_dir=None):
             os.makedirs(config_dir)
         except OSError as e:
             if e.errno != errno.EEXIST:
-                pass
+                raise
     with open(pjoin(config_dir, 'build_config.json'), 'w') as fid:
         json.dump(data, fid, indent=4)