소스 검색

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)