aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-06-20 12:22:11 +0200
committerGravatar kwzrd <[email protected]>2020-06-20 12:22:11 +0200
commit662ca588ac352fc346fae973dead5052c7b4af59 (patch)
tree1aef6c546f913d2200203d8825a38827847e908c
parentIncidents: reduce excessive whitespace (diff)
Incidents: remove redundant `exc_info` passing
Pointed out by Mark during review that this is unnecessary, as logging using `exception` automatically appends the `exc_info` of the handled exception when done in an except block. Co-authored-by: MarkKoz <[email protected]>
-rw-r--r--bot/cogs/moderation/incidents.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/cogs/moderation/incidents.py b/bot/cogs/moderation/incidents.py
index 70921462d..5f4291953 100644
--- a/bot/cogs/moderation/incidents.py
+++ b/bot/cogs/moderation/incidents.py
@@ -171,8 +171,8 @@ class Incidents(Cog):
# Finally add the `outcome` emoji
await message.add_reaction(outcome.value)
- except Exception as exc:
- log.exception("Failed to archive incident to #incidents-archive", exc_info=exc)
+ except Exception:
+ log.exception("Failed to archive incident to #incidents-archive")
return False
else:
@@ -273,8 +273,8 @@ class Incidents(Cog):
message = await self.bot.get_channel(Channels.incidents).fetch_message(message_id)
except discord.NotFound:
log.trace("Message doesn't exist, it was likely already relayed")
- except Exception as exc:
- log.exception("Failed to fetch message!", exc_info=exc)
+ except Exception:
+ log.exception("Failed to fetch message!")
else:
log.trace("Message fetched successfully!")
return message