mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: os.makedirs race condition (#33161)
This commit is contained in:
@@ -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