diff -r 84ef2180d1fa -r cb8b833ad122 src/hdalab/services.py --- a/src/hdalab/services.py Fri Apr 03 14:31:43 2015 +0200 +++ b/src/hdalab/services.py Fri Apr 03 18:41:01 2015 +0200 @@ -50,8 +50,14 @@ rel_export_path = os.path.join(rel_export_path_dir, export_filename) if not os.path.exists(export_path_dir): - os.makedirs(export_path_dir) - + try: + os.makedirs(export_path_dir) + except OSError, e: + if e.errno != 17: + raise + # time.sleep might help here + pass + preview_dim = getattr(settings, 'RENKAN_PREVIEW_DIM', (500,500)) preview_wait = getattr(settings, 'RENKAN_PREVIEW_WAIT', 5000)