Skip to content

Commit 84f431e

Browse files
committed
Change import to use HTTPError - HTTPClientError is only present in tornado >= 5.1
1 parent daa038b commit 84f431e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbgrader/server_extensions/course_list/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import traceback
77

88
from tornado import web
9-
from tornado.httpclient import AsyncHTTPClient, HTTPClientError
9+
from tornado.httpclient import AsyncHTTPClient, HTTPError
1010
from tornado import gen
1111
from textwrap import dedent
1212
from urllib.parse import urlparse
@@ -62,7 +62,7 @@ def check_for_local_formgrader(self, config):
6262
http_client = AsyncHTTPClient()
6363
try:
6464
response = yield http_client.fetch(url, headers=header)
65-
except HTTPClientError:
65+
except HTTPError:
6666
# local formgrader isn't running
6767
self.log.warning("Local formgrader does not seem to be running")
6868
raise gen.Return([])

0 commit comments

Comments
 (0)