Skip to content

Commit

Permalink
Tell cython-lint to shut up about bare excepts
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchueler committed Jan 4, 2024
1 parent 308d0a3 commit 8de61f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/gstools/field/summator.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from cython.parallel import prange

try:
cimport openmp
except:
except: # no-cython-lint
...

cimport numpy as np
Expand All @@ -20,7 +20,7 @@ def set_num_threads(num_threads):
if num_threads is None:
try:
num_threads_c = openmp.omp_get_num_procs()
except:
except: # no-cython-lint
...
else:
num_threads_c = num_threads
Expand Down
4 changes: 2 additions & 2 deletions src/gstools/krige/krigesum.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from cython.parallel import prange

try:
cimport openmp
except:
except: # no-cython-lint
...

cimport numpy as np
Expand All @@ -19,7 +19,7 @@ def set_num_threads(num_threads):
if num_threads is None:
try:
num_threads_c = openmp.omp_get_num_procs()
except:
except: # no-cython-lint
...
else:
num_threads_c = num_threads
Expand Down
4 changes: 2 additions & 2 deletions src/gstools/variogram/estimator.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ from cython.parallel import parallel, prange

try:
cimport openmp
except:
except: # no-cython-lint
...

cimport numpy as np
Expand All @@ -21,7 +21,7 @@ def set_num_threads(num_threads):
if num_threads is None:
try:
num_threads_c = openmp.omp_get_num_procs()
except:
except: # no-cython-lint
...
else:
num_threads_c = num_threads
Expand Down

0 comments on commit 8de61f3

Please sign in to comment.