#86 DevConfiguration has except-pass for mkdir target_dir
Closed 6 years ago Opened 6 years ago by puiterwijk.

In server/conf/config.py, we find this:

try:                 
    mkdir(TARGET_DIR)
except:              
    pass             

Which is suboptimal, as it might make the dev environment crash for unknown reasons.
I would suggest something like:

if not os.path.exists(TARGET_DIR):
    mkdir(TARGET_DIR)

Metadata Update from @qwan:
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata