Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions distributed/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3094,7 +3094,6 @@ async def _run(
elif resp["status"] == "error":
# Exception raised by the remote function
_, exc, tb = clean_exception(**resp)
assert exc is not None
exc = exc.with_traceback(tb)
else:
assert resp["status"] == "OK"
Expand Down Expand Up @@ -3250,20 +3249,8 @@ def _get_computation_code(
"|".join([f"(?:{mod})" for mod in ignore_modules])
)
if ignore_files:
# Given ignore-files = [foo], match:
# /path/to/foo
# /path/to/foo.py[c]
# /path/to/foo/bar.py[c]
# \path\to\foo
# \path\to\foo.py[c]
# \path\to\foo\bar.py[c]
# <frozen foo>
# Do not match files that have 'foo' as a substring,
# unless the user explicitly states '.*foo.*'.
ignore_files_or = "|".join(mod for mod in ignore_files)
fname_pattern = re.compile(
rf".*[\\/]({ignore_files_or})([\\/]|\.pyc?$|$)"
rf"|<frozen ({ignore_files_or})>$"
r".*[\\/](" + "|".join(mod for mod in ignore_files) + r")([\\/]|$)"
)
else:
# stacklevel 0 or less - shows dask internals which likely isn't helpful
Expand Down
Loading