[py3] Made exception examination py3-compatible.

This commit is contained in:
Karen Tracey 2012-08-12 12:08:58 -04:00
parent 031896c510
commit 49bb72c403
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ from .response import (TemplateResponseTest, CacheMiddlewareTest,
try:
from .loaders import RenderToStringTest, EggLoaderTest
except ImportError as e:
if "pkg_resources" in e.message:
if "pkg_resources" in e.args[0]:
pass # If setuptools isn't installed, that's fine. Just move on.
else:
raise