File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,10 +125,10 @@ async def zen(
125125 start_index = int (match .group ("start" )) if match .group ("start" ) else None
126126 end_index = int (match .group ("end" )) if match .group ("end" ) else None
127127 step_size = int (match .group ("step" )) if match .group ("step" ) else 1
128-
128+
129129 if step_size == 0 :
130130 raise BadArgument (f"Step size must not be 0." )
131-
131+
132132 lines = zen_lines [start_index :end_index :step_size ]
133133 if not lines :
134134 raise BadArgument (f"Slice returned 0 lines." )
Original file line number Diff line number Diff line change @@ -91,4 +91,4 @@ async def test_zen_with_invalid_slices(self):
9191
9292 for input_slice in slices :
9393 with self .subTest (input_slice = input_slice ), self .assertRaises (BadArgument ):
94- await self .cog .zen .callback (self .cog , self .ctx , search_value = input_slice )
94+ await self .cog .zen .callback (self .cog , self .ctx , search_value = input_slice )
You can’t perform that action at this time.
0 commit comments