Fix logging message in get_path_from_regex (#49)
Adds the missing param.
This commit is contained in:
committed by
Cristi Vîjdea
parent
e30af0287f
commit
a82730d32b
@@ -30,7 +30,8 @@ class EndpointEnumerator(_EndpointEnumerator):
|
||||
|
||||
def get_path_from_regex(self, path_regex):
|
||||
if path_regex.endswith(')'):
|
||||
logger.warning("url pattern does not end in $ ('%s') - unexpected things might happen")
|
||||
logger.warning("url pattern does not end in $ ('%s') - unexpected things might happen",
|
||||
path_regex)
|
||||
return self.unescape_path(super(EndpointEnumerator, self).get_path_from_regex(path_regex))
|
||||
|
||||
def should_include_endpoint(self, path, callback, app_name='', namespace='', url_name=None):
|
||||
|
||||
Reference in New Issue
Block a user