mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
Fixed an except
statement to be Python3-compatible. Thanks to charettes for the tip.
This commit is contained in:
parent
4ceb9db9d8
commit
2b6644388f
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user