Skip to content

Commit c09d9d3

Browse files
committed
Move log call
1 parent 2a851dd commit c09d9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbgrader/server_extensions/assignment_list/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def list_released_assignments(self, course_id=None):
7777
assignments = lister.start()
7878

7979
except Exception as e:
80+
self.log.error(traceback.format_exc())
8081
if isinstance(e, ExchangeError):
81-
self.log.error(traceback.format_exc())
8282
retvalue = {
8383
"success": False,
8484
"value": """The exchange directory does not exist and could
@@ -122,8 +122,8 @@ def list_submitted_assignments(self, course_id=None):
122122
assignments = lister.start()
123123

124124
except Exception as e:
125+
self.log.error(traceback.format_exc())
125126
if isinstance(e, ExchangeError):
126-
self.log.error(traceback.format_exc())
127127
retvalue = {
128128
"success": False,
129129
"value": """The exchange directory does not exist and could

0 commit comments

Comments
 (0)