File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -680,14 +680,14 @@ def makedirs(path, exist_ok=False):
680
680
return path
681
681
682
682
# this odd approach deals with concurrent directory cureation
683
- try :
684
- if not os . path . exists ( os . path . abspath ( path )):
685
- fmlogger . debug ( "Creating directory %s" , path )
683
+ if not os . path . exists ( os . path . abspath ( path )) :
684
+ fmlogger . debug ( "Creating directory %s" , path )
685
+ try :
686
686
os .makedirs (path )
687
- except OSError :
688
- fmlogger .debug ("Problem creating directory %s" , path )
689
- if not os .path .exists (path ):
690
- raise OSError ('Could not create directory %s' % path )
687
+ except OSError :
688
+ fmlogger .debug ("Problem creating directory %s" , path )
689
+ if not os .path .exists (path ):
690
+ raise OSError ('Could not create directory %s' % path )
691
691
return path
692
692
693
693
You can’t perform that action at this time.
0 commit comments