Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
HollowPrincess committed Aug 25, 2023
1 parent d4688b9 commit 60c9c82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nbtools/run_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ def run_in_process(func):
""" Decorator to run the `func` in a separated process for terminating all relevant processes properly. """
@wraps(func)
def _wrapper(*args, **kwargs):
# pylint: broad-exception-raised
# pylint: broad-exception-caught, W0719
returned_value = Queue()
kwargs = {**kwargs, 'returned_value': returned_value}

json_path = None

output = {'failed': True, 'traceback': ''}

try:
process = Process(target=func, args=args, kwargs=kwargs)
process.start()
Expand Down

0 comments on commit 60c9c82

Please sign in to comment.