Merge "Cleanup deprecated exception checking"

This commit is contained in:
Jenkins 2015-11-12 16:27:07 +00:00 committed by Gerrit Code Review
commit b5357b1bc1
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ def delete_offline_nodes(server, timeout):
except jenkins.NotFoundException:
pass
except jenkins.JenkinsException as e:
if '[500]' in e.message:
if '[500]' in str(e):
pass
else:
raise
@ -78,7 +78,7 @@ def main():
except jenkins.NotFoundException:
pass
except jenkins.JenkinsException as e:
if '[500]' in e.message:
if '[500]' in str(e):
pass
else:
raise