Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def my_function(self):
- resp = self.resp
- if resp.status_code == 404:
- raise NoSuchElementError('GET'+self.url+'{}'.format(resp.status_code))
- elif resp.status_code == 500:
- raise ServerErrorError('GET'+self.url+'{}'.format(resp.status_code))
- Traceback (most recent call last):
- File "test.py", line 32, in <module>
- print ins.my_function()
- File "api.py", line 820, in my_function
- raise NoSuchElementError('GET ' + self.url + ' {} '.format(resp.status_code))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement