Commit 9d575139 authored by Sean Bleier's avatar Sean Bleier

Use python3 compatible exception handling.

parent 753a1a1c
...@@ -105,8 +105,8 @@ class BaseRedisCache(BaseCache): ...@@ -105,8 +105,8 @@ class BaseRedisCache(BaseCache):
parser_class = getattr(mod, cls_name) parser_class = getattr(mod, cls_name)
except AttributeError: except AttributeError:
raise ImproperlyConfigured("Could not find parser class '%s'" % parser_class) raise ImproperlyConfigured("Could not find parser class '%s'" % parser_class)
except ImportError, e: except ImportError as ex:
raise ImproperlyConfigured("Could not find module '%s'" % e) raise ImproperlyConfigured("Could not find module '%s'" % ex)
return parser_class return parser_class
def get_pickle_version(self): def get_pickle_version(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment