Commit 2b664438 authored by Julien Phalip's avatar Julien Phalip
Browse files

Fixed an `except` statement to be Python3-compatible. Thanks to charettes for the tip.

parent 4ceb9db9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ class LocaleRegexProvider(object):
                regex = force_unicode(self._regex)
            try:
                compiled_regex = re.compile(regex, re.UNICODE)
            except re.error, e:
            except re.error as e:
                raise ImproperlyConfigured(
                    '"%s" is not a valid regular expression: %s' %
                    (regex, unicode(e)))