diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 15:13:24 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 15:13:24 +0300 |
commit | ad45447445f5be4c14b4b11d798606748e0aa518 (patch) | |
tree | 498333c97e056c75b9f5747fa6cdbfa6dbbe26d3 /servo | |
parent | 22a85e8dc265a8601839120317405ec6290e58f5 (diff) | |
download | Servo-ad45447445f5be4c14b4b11d798606748e0aa518.tar.gz Servo-ad45447445f5be4c14b4b11d798606748e0aa518.tar.bz2 Servo-ad45447445f5be4c14b4b11d798606748e0aa518.zip |
Django 3 fixes
Diffstat (limited to 'servo')
-rw-r--r-- | servo/models/note.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servo/models/note.py b/servo/models/note.py index 3f48282..0bc4183 100644 --- a/servo/models/note.py +++ b/servo/models/note.py @@ -17,7 +17,7 @@ from django.core.files.base import ContentFile from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ -from django.core.urlresolvers import reverse +from django.urls import reverse from django.core.mail import send_mail, EmailMessage from django.contrib.contenttypes.fields import GenericRelation @@ -528,7 +528,7 @@ class Note(MPTTModel): for r in recipients: try: messages.append(self.send_sms(r, user)) - except (ValidationError, IntegrityError), e: + except (ValidationError, IntegrityError) as e: pass if self.mailto(): |