mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: os.makedirs race condition (#33161)
(cherry picked from commit 00f1fdb3c4)
This commit is contained in:
committed by
Michael S. Molina
parent
35d7e15841
commit
d9c1ee67f5
@@ -88,8 +88,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
"""
|
||||
wtforms_json.init()
|
||||
|
||||
if not os.path.exists(self.config["DATA_DIR"]):
|
||||
os.makedirs(self.config["DATA_DIR"])
|
||||
os.makedirs(self.config["DATA_DIR"], exist_ok=True)
|
||||
|
||||
def post_init(self) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user