aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar brad90four <[email protected]>2021-11-12 10:08:42 -0500
committerGravatar GitHub <[email protected]>2021-11-12 10:08:42 -0500
commit8bbef57ccda68c388cf3d4b4fbc90fedf0e8597e (patch)
tree3fc30776db2ceebdd607493b64dcc1f928816ef9
parentfix: replace Union with Optional type hint (diff)
fix: bare return instead of explicit None
Co-authored-by: Xithrius <[email protected]>
-rw-r--r--bot/exts/utilities/colour.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utilities/colour.py b/bot/exts/utilities/colour.py
index 5cd01fb5..c7edec0d 100644
--- a/bot/exts/utilities/colour.py
+++ b/bot/exts/utilities/colour.py
@@ -253,7 +253,7 @@ class Colour(commands.Cog):
score_cutoff=80
)
except (ValueError, TypeError):
- return None
+ return
return f"#{self.colour_mapping[match]}"