Merge "Fix KeyError when test_servers_get fails."
This commit is contained in:
commit
31f6244428
@ -100,10 +100,10 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase):
|
|||||||
try:
|
try:
|
||||||
match = re.match(line, result_line)
|
match = re.match(line, result_line)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
self.fail(_('Response error on line %(i)s:\n'
|
self.fail(_('Response error on line:\n'
|
||||||
'%(line)s\n%(result_line)s') % locals())
|
'%(line)s\n%(result_line)s') % locals())
|
||||||
if not match:
|
if not match:
|
||||||
self.fail(_('Response error on line %(i)s:\n'
|
self.fail(_('Response error on line:\n'
|
||||||
'%(line)s\n%(result_line)s') % locals())
|
'%(line)s\n%(result_line)s') % locals())
|
||||||
if match.groups():
|
if match.groups():
|
||||||
result = match.groups()[0]
|
result = match.groups()[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user