aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/utils/utils.py4
-rw-r--r--tests/bot/exts/utils/test_utils.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py
index 9bd4b1757..d83dbc2ce 100644
--- a/bot/exts/utils/utils.py
+++ b/bot/exts/utils/utils.py
@@ -125,10 +125,10 @@ class Utils(Cog):
start_index = int(match.group("start")) if match.group("start") else None
end_index = int(match.group("end")) if match.group("end") else None
step_size = int(match.group("step")) if match.group("step") else 1
-
+
if step_size == 0:
raise BadArgument(f"Step size must not be 0.")
-
+
lines = zen_lines[start_index:end_index:step_size]
if not lines:
raise BadArgument(f"Slice returned 0 lines.")
diff --git a/tests/bot/exts/utils/test_utils.py b/tests/bot/exts/utils/test_utils.py
index 17cfe05b8..9b8ea4ade 100644
--- a/tests/bot/exts/utils/test_utils.py
+++ b/tests/bot/exts/utils/test_utils.py
@@ -91,4 +91,4 @@ class ZenTests(unittest.IsolatedAsyncioTestCase):
for input_slice in slices:
with self.subTest(input_slice = input_slice), self.assertRaises(BadArgument):
- await self.cog.zen.callback(self.cog, self.ctx, search_value=input_slice) \ No newline at end of file
+ await self.cog.zen.callback(self.cog, self.ctx, search_value=input_slice)