Skip to content

quieten flake8 E722 #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2021
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion dpctl/tensor/numpy_usm_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def _isdef(x):
try:
the_code = compile(new_func, "__init__", "exec")
exec(the_code)
except:
except Exception:
print("Failed to exec type propagation", cname)
pass

Expand Down
4 changes: 2 additions & 2 deletions dpctl/tests/test_sycl_usm.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def test_suai_non_contig_1D(self):
MemoryUSMClass = MemoryUSMShared
try:
buf = MemoryUSMClass(32)
except:
except Exception:
self.skipTest("MemoryUSMShared could not be allocated")
host_canary = np.full((buf.nbytes,), 77, dtype="|u1")
buf.copy_from_host(host_canary)
Expand Down Expand Up @@ -294,7 +294,7 @@ def test_suai_non_contig_2D(self):
MemoryUSMClass = MemoryUSMDevice
try:
buf = MemoryUSMClass(20)
except:
except Exception:
self.skipTest("MemoryUSMShared could not be allocated")
host_canary = np.arange(20, dtype="|u1")
buf.copy_from_host(host_canary)
Expand Down
2 changes: 1 addition & 1 deletion examples/python/subdevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def subdivide_by_affinity(affinity="numa"):
len(sub_devs), [d.max_compute_units for d in sub_devs]
)
)
except:
except Exception:
print("Device partitioning by affinity was not successful.")


Expand Down