|
19 | 19 | from pgcommitfest.mailqueue.util import send_mail, send_simple_mail |
20 | 20 | from pgcommitfest.userprofile.util import UserWrapper |
21 | 21 |
|
22 | | -from models import CommitFest, Patch, PatchOnCommitFest, PatchHistory, Committer |
23 | | -from models import MailThread |
24 | | -from forms import PatchForm, NewPatchForm, CommentForm, CommitFestFilterForm |
25 | | -from forms import BulkEmailForm |
26 | | -from ajax import doAttachThread, refresh_single_thread |
27 | | -from feeds import ActivityFeed |
| 22 | +from .models import CommitFest, Patch, PatchOnCommitFest, PatchHistory, Committer |
| 23 | +from .models import MailThread |
| 24 | +from .forms import PatchForm, NewPatchForm, CommentForm, CommitFestFilterForm |
| 25 | +from .forms import BulkEmailForm |
| 26 | +from .ajax import doAttachThread, refresh_single_thread |
| 27 | +from .feeds import ActivityFeed |
28 | 28 |
|
29 | 29 |
|
30 | 30 | def home(request): |
@@ -397,7 +397,7 @@ def comment(request, cfid, patchid, what): |
397 | 397 | if request.method == 'POST': |
398 | 398 | try: |
399 | 399 | form = CommentForm(patch, poc, is_review, data=request.POST) |
400 | | - except Exception, e: |
| 400 | + except Exception as e: |
401 | 401 | messages.add_message(request, messages.ERROR, "Failed to build list of response options from the archives: %s" % e) |
402 | 402 | return HttpResponseRedirect('/%s/%s/' % (cf.id, patch.id)) |
403 | 403 |
|
@@ -457,7 +457,7 @@ def comment(request, cfid, patchid, what): |
457 | 457 | else: |
458 | 458 | try: |
459 | 459 | form = CommentForm(patch, poc, is_review) |
460 | | - except Exception, e: |
| 460 | + except Exception as e: |
461 | 461 | messages.add_message(request, messages.ERROR, "Failed to build list of response options from the archives: %s" % e) |
462 | 462 | return HttpResponseRedirect('/%s/%s/' % (cf.id, patch.id)) |
463 | 463 |
|
@@ -742,7 +742,7 @@ def thread_notify(request): |
742 | 742 | try: |
743 | 743 | t = MailThread.objects.get(messageid=m) |
744 | 744 | refresh_single_thread(t) |
745 | | - except Exception, e: |
| 745 | + except Exception as e: |
746 | 746 | # Just ignore it, we'll check again later |
747 | 747 | pass |
748 | 748 |
|
|
0 commit comments