aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-12 15:13:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-12 15:13:24 +0300
commitad45447445f5be4c14b4b11d798606748e0aa518 (patch)
tree498333c97e056c75b9f5747fa6cdbfa6dbbe26d3 /servo/models
parent22a85e8dc265a8601839120317405ec6290e58f5 (diff)
downloadServo-ad45447445f5be4c14b4b11d798606748e0aa518.tar.gz
Servo-ad45447445f5be4c14b4b11d798606748e0aa518.tar.bz2
Servo-ad45447445f5be4c14b4b11d798606748e0aa518.zip
Django 3 fixes
Diffstat (limited to 'servo/models')
-rw-r--r--servo/models/note.py4
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():