diff options
| author | 2020-05-15 09:17:20 +0300 | |
|---|---|---|
| committer | 2020-05-15 09:17:20 +0300 | |
| commit | 248ce24936cd09e560c651c6c5953d1ea90d8229 (patch) | |
| tree | a55162ca6aa0add43c8642a3a96f6aada35d0f22 | |
| parent | PEP Improvisations: Remove unnecessary typehint (diff) | |
PEP Improvisations: Fix log text formatting
Use repo own alignment of multiline text.
| -rw-r--r-- | bot/cogs/utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py index c24252aa6..6562ea0b4 100644 --- a/bot/cogs/utils.py +++ b/bot/cogs/utils.py @@ -276,8 +276,10 @@ class Utils(Cog): pep_embed.add_field(name=field, value=pep_header[field]) return pep_embed, True else: - log.trace(f"The user requested PEP {pep_nr}, but the response had an unexpected status code: " - f"{response.status}.\n{response.text}") + log.trace( + f"The user requested PEP {pep_nr}, but the response had an unexpected status code: " + f"{response.status}.\n{response.text}" + ) error_message = "Unexpected HTTP error during PEP search. Please let us know." return Embed(title="Unexpected error", description=error_message, colour=Colour.red()), False |