Custom exception was ignored when exc was specified in retry function

retry custom exception was not thrown as written in the documentation.

http://docs.celeryproject.org/en/latest/reference/celery.app.task.html#celery.app.task.Task.retry