Commit 78cae61a authored by Jeremy Hylton's avatar Jeremy Hylton

Raise useful exception when called with URL for which request type

cannot be determined.

Pseudo-fix for SF bug #420724
parent caa79a9e
......@@ -217,7 +217,8 @@ class Request:
def get_type(self):
if self.type is None:
self.type, self.__r_type = splittype(self.__original)
assert self.type is not None, self.__original
if self.type is None:
raise ValueError, "unknown url type: %s" % self.__original
return self.type
def get_host(self):
......
Markdown is supported
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