Skip to content

Commit

Permalink
Fixed pylint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
2br-2b committed Jun 15, 2024
1 parent a3b705c commit 903dfa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/ext/prometheus/prometheus_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from prometheus_client import start_http_server, Counter, Gauge
from discord.ext import commands, tasks
from discord import Interaction, InteractionType, AutoShardedClient
from discord.app_commands.commands import Command, ContextMenu
from discord.app_commands.commands import Command

log = logging.getLogger("prometheus")

Expand Down Expand Up @@ -128,13 +128,13 @@ async def on_interaction(self, interaction: Interaction):
if isinstance(interaction.command, Command):
command_name = ""
parent = interaction.command.parent
while parent != None:
while parent is not None:
command_name += parent.name + " "
parent = parent.parent
command_name += interaction.command.name
else:
command_name = interaction.command.name

ON_INTERACTION_COUNTER.labels(
shard_id, interaction.type.name, command_name
).inc()
Expand Down

0 comments on commit 903dfa1

Please sign in to comment.