Commit 810c4789 authored by Ian Briggs's avatar Ian Briggs
Browse files

error message on bad url

parent 05605dd1
......@@ -81,6 +81,7 @@ class socket:
"Incorrect GET form submisson")
return io.StringIO(response.replace(newline, "\n"), newline)
assert url in self.URLs, f"You are requesting a url that you shouldn't: {url}"
assert self.method == self.URLs[url][0], f"Expected a {self.URLs[url][0]} request but got a {self.method} request to {url}"
output = self.URLs[url][1]
if self.URLs[url][2]:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment