Show warning on ref_name collisions

Closes #156
This commit is contained in:
Cristi Vîjdea
2018-08-06 20:00:20 +03:00
parent 3f2d2871f0
commit 5cd642c9a0
4 changed files with 41 additions and 7 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ 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",
path_regex)
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):