Avoid race condition when making configuration directory of tryton

(grafted from 3931dcea4c458a1c5ac5887d0e13b2cef9978cdd)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2023-11-01 13:27:09 +01:00
1 parent 6a73f7423e
commit cac893d388
1 file changed
+1 -2
+1 -2
View File
@@ -26,8 +26,7 @@ def get_config_dir():
__version__.rsplit('.', 1)[0])
if not os.path.isdir(get_config_dir()):
os.makedirs(get_config_dir(), 0o700)
os.makedirs(get_config_dir(), mode=0o700, exist_ok=True)
class ConfigManager(object):