I'm usually checking if exc has log_traceback=True. That's the flag, which was invented for such situations. Look at task/manager.py for an example. It's ugly, but it works.