summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtko/parse.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tko/parse.py b/tko/parse.py
index a832a36d..67f76a5b 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -283,12 +283,13 @@ def main():
parse_path(db, path, options.level, options.reparse,
options.mailit)
- if options.site_do_post is True:
- site_post_parse_job(path)
-
finally:
fcntl.flock(lockfile, fcntl.LOCK_UN)
lockfile.close()
+
+ if options.site_do_post is True:
+ site_post_parse_job(results_dir)
+
except:
pid_file_manager.close_file(1)
raise