diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-16 05:46:22 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-16 05:46:22 -0400 |
commit | eef64c29f8a7d5c1b14c6dbfea7954e1c8c6d1f2 (patch) | |
tree | 804b9f9d45d6880f63a59d212f1d247e2bc3bc4a /askbot/tasks.py | |
parent | cd4a2b26753c74ca66109932248897c8ee57f71e (diff) | |
download | askbot-eef64c29f8a7d5c1b14c6dbfea7954e1c8c6d1f2.tar.gz askbot-eef64c29f8a7d5c1b14c6dbfea7954e1c8c6d1f2.tar.bz2 askbot-eef64c29f8a7d5c1b14c6dbfea7954e1c8c6d1f2.zip |
fixed a bug and enabled traceback logging in the celery task
Diffstat (limited to 'askbot/tasks.py')
-rw-r--r-- | askbot/tasks.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/askbot/tasks.py b/askbot/tasks.py index d94e0a68..e5ba143d 100644 --- a/askbot/tasks.py +++ b/askbot/tasks.py @@ -58,10 +58,9 @@ def record_post_update_celery_task( diff = diff ) except Exception: - if 'test' in sys.argv: - # HACK: exceptions from Celery job don;t propagate upwards to Django test runner - # so at least le't sprint tracebacks - print >>sys.stderr, traceback.format_exc() + # HACK: exceptions from Celery job don;t propagate upwards to Django test runner + # so at least le't sprint tracebacks + print >>sys.stderr, traceback.format_exc() raise def record_post_update( |