branch | stable |
changeset 9235 | 3eb8d65824f5 |
parent 8930 | 6a02be304486 |
child 9252 | 01bca75ee8bd |
child 9337 | 70f6b183085a |
--- a/devtools/__init__.py Thu Sep 19 18:11:12 2013 +0200 +++ b/devtools/__init__.py Fri Sep 06 11:01:20 2013 +0200 @@ -288,8 +288,11 @@ The function create it if necessary""" backupdir = join(self.config.apphome, 'database') - if not isdir(backupdir): + try: os.makedirs(backupdir) + except: + if not isdir(backupdir): + raise return backupdir def config_path(self, db_id):