refactor: bare excepts removed.

This commit is contained in:
Fabian Joswig 2021-12-13 14:47:57 +00:00
parent 7e0308b155
commit 3fd63f8b67
4 changed files with 6 additions and 6 deletions

View file

@ -946,7 +946,7 @@ def _merge_idx(idl):
g = groupby(idl)
if next(g, True) and not next(g, False):
return idl[0]
except:
except Exception:
pass
if np.all([type(idx) is range for idx in idl]):