Permalink
Browse files

Fix for export when path may not exist. Closes #856.

  • Loading branch information...
1 parent c391021 commit 73e373aae88934f19b635c4fa89aaf56398d7f8d @onyxfish onyxfish committed Aug 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 panda/tasks/export_search.py
View
4 panda/tasks/export_search.py
@@ -44,13 +44,13 @@ def run(self, query, task_status_id, filename=None, *args, **kwargs):
path = os.path.join(settings.EXPORT_ROOT, filename)
zip_path = os.path.join(settings.EXPORT_ROOT, zip_name)
-
- zipfile = ZipFile(zip_path, 'w')
try:
os.makedirs(os.path.realpath(path))
except:
pass
+
+ zipfile = ZipFile(zip_path, 'w')
response = solr.query_grouped(
settings.SOLR_DATA_CORE,

0 comments on commit 73e373a

Please sign in to comment.