aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Strengthless <[email protected]>2025-02-14 14:50:10 +0100
committerGravatar Strengthless <[email protected]>2025-02-14 14:50:10 +0100
commit55068988e2e8eacbd3d44f1ca992a9c85f24fa6e (patch)
treeb2ee462611b7895b014ad39dde01df763b2ae475
parentMerge pull request #3247 from python-discord/swfarnsworth/fix-auto-upload (diff)
fix: `has_lines` returns empty str instead of bool
-rw-r--r--bot/utils/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/helpers.py b/bot/utils/helpers.py
index 7b5474a2f..4a85f46f5 100644
--- a/bot/utils/helpers.py
+++ b/bot/utils/helpers.py
@@ -25,7 +25,7 @@ def has_lines(string: str, count: int) -> bool:
split = string.split("\n", count - 1)
# Make sure the last part isn't empty, which would happen if there was a final newline.
- return split[-1] and len(split) == count
+ return split[-1] != "" and len(split) == count
def pad_base64(data: str) -> str: