From ad45447445f5be4c14b4b11d798606748e0aa518 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 12 May 2021 15:13:24 +0300 Subject: Django 3 fixes --- servo/models/note.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'servo/models') 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(): -- cgit v1.2.3