Skip to content

Commit

Permalink
properly reset result and exception info (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilddom committed Oct 13, 2015
1 parent 0a15ab5 commit 418d884
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Memrise_Course_Importer/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def isException(self):
return isinstance(self.exc_info[1], Exception)

def run(self):
self.result = None
self.exc_info = (None,None,None)
try:
course = self.memriseService.loadCourse(self.url, MemriseCourseLoader.Observer(self))
self.result = course
Expand Down

0 comments on commit 418d884

Please sign in to comment.