Fix delegate_to localhost vs. 127.0.0.1 (and ::1)

This commit is contained in:
James Cammarata 2015-09-15 13:08:54 -04:00
parent 38573c55bf
commit 8e664ad226
2 changed files with 14 additions and 4 deletions

View file

@ -60,8 +60,8 @@ class Conditional:
# associated with it, so we pull it out now in case we need it for
# error reporting below
ds = None
if hasattr(self, 'get_ds'):
ds = self.get_ds()
if hasattr(self, '_ds'):
ds = getattr(self, '_ds')
try:
for conditional in self.when: