Skip to content

Commit

Permalink
Fix bug with duplicate hist_file
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamrick committed May 5, 2021
1 parent 7104e19 commit cd17eb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nbgrader/preprocessors/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def preprocess(self,
resources: ResourcesDict,
retries: Optional[Any] = None
) -> Tuple[NotebookNode, ResourcesDict]:
# This gets added in by the parent execute preprocessor, so if it's already in our
# extra arguments we need to delete it or traitlets will be unhappy.
if '--HistoryManager.hist_file=:memory:' in self.extra_arguments:
self.extra_arguments.remove('--HistoryManager.hist_file=:memory:')

if retries is None:
retries = self.execute_retries

Expand Down

0 comments on commit cd17eb3

Please sign in to comment.