diff options
author | 2021-11-12 10:08:42 -0500 | |
---|---|---|
committer | 2021-11-12 10:08:42 -0500 | |
commit | 8bbef57ccda68c388cf3d4b4fbc90fedf0e8597e (patch) | |
tree | 3fc30776db2ceebdd607493b64dcc1f928816ef9 | |
parent | fix: 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.py | 2 |
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]}" |