def __call__(self, url, token, http_conn=None): self.count += 1 if self.count == 1: raise swift.ClientException("Some 500 Error", http_status=500) if self.count == 2: raise swift.ClientException("Some 401 Error", http_status=401) return ''
def __call__(self, url, token, http_conn=None): self.count += 1 raise swift.ClientException("Some 400 Error", http_status=400)