'POST object wrapped in `.JWS` and check response.
If the server responded with a badNonce error, the request will
be retried once.'

def post(self, *args, **kwargs):

    try:
        return self._post_once(*args, **kwargs)
    except messages.Error as error:
        if (error.code == 'badNonce'):
            logger.debug('Retrying    request    after    error:\n%s', error)
            return self._post_once(*args, **kwargs)
        else:
            raise
