Skip to content

Commit a87e704

Browse files
committed
Fix an attribute error
1 parent 844f158 commit a87e704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def format_channel_name(self, author):
739739
"""Sanitises a username for use with text channel names"""
740740
name = author.name.lower()
741741
new_name = (
742-
"".join(l for l in name if l not in string.punctuation and l.printable())
742+
"".join(l for l in name if l not in string.punctuation and l.isprintable())
743743
or "null"
744744
)
745745
new_name += f"⧫{author.discriminator}"

0 commit comments

Comments
 (0)