Set the reraise=True on the retry. This will make it raise the last exception it captured instead of the RetryException.
reraise=True
RetryException
@retry(stop=stop_after_attempt(6), wait=wait_fixed(5), reraise=True)