diff options
-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(): |