summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/ajax.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-02-06 18:40:45 +0000
committerMagnus Hagander2019-02-06 19:01:49 +0000
commitb88715934631422b20c56affcb679b901c702a0c (patch)
tree16b39cee57eab9f55ff26c0d0413029728c11b93 /pgcommitfest/commitfest/ajax.py
parent463b3c1fe2e5bea061269ed9eea4b876a9eab213 (diff)
Fix imports and exceptions for Python3
Diffstat (limited to 'pgcommitfest/commitfest/ajax.py')
-rw-r--r--pgcommitfest/commitfest/ajax.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pgcommitfest/commitfest/ajax.py b/pgcommitfest/commitfest/ajax.py
index 71b3ee8..c188684 100644
--- a/pgcommitfest/commitfest/ajax.py
+++ b/pgcommitfest/commitfest/ajax.py
@@ -10,8 +10,8 @@ import requests
import json
from pgcommitfest.auth import user_search
-from models import CommitFest, Patch, MailThread, MailThreadAttachment
-from models import MailThreadAnnotation, PatchHistory
+from .models import CommitFest, Patch, MailThread, MailThreadAttachment
+from .models import MailThreadAnnotation, PatchHistory
class HttpResponseServiceUnavailable(HttpResponse):
@@ -272,5 +272,5 @@ def main(request, command):
resp = HttpResponse(content_type='application/json')
json.dump(_ajax_map[command](request), resp)
return resp
- except Http503, e:
+ except Http503 as e:
return HttpResponseServiceUnavailable(e, content_type='text/plain')