Skip to content

Commit ce22976

Browse files
authored
black styling compliance
1 parent eddf0fb commit ce22976

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/groupby/groupby.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,10 +698,11 @@ def get_group(self, name, obj=None):
698698
isValid = False
699699
else:
700700
isValid = isValid and True
701-
except:
701+
except TypeError:
702702
pass
703703
else:
704-
if not isValid: raise KeyError(name)
704+
if not isValid:
705+
raise KeyError(name)
705706

706707
return obj._take_with_is_copy(inds, axis=self.axis)
707708

@@ -2602,4 +2603,3 @@ def get_groupby(
26022603
observed=observed,
26032604
mutated=mutated,
26042605
)
2605-

0 commit comments

Comments
 (0)