Skip to content

Commit 37edddc

Browse files
committed
test again
1 parent eddee03 commit 37edddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ async def update(self, ctx, *, flag: str = ""):
18891889

18901890
user = data["user"]
18911891

1892-
if commit_data:
1892+
if not commit_data or not commit_data.get("html_url"):
18931893
embed = discord.Embed(color=self.bot.main_color)
18941894

18951895
embed.set_footer(
@@ -1904,7 +1904,7 @@ async def update(self, ctx, *, flag: str = ""):
19041904

19051905
embed.description = latest.description
19061906
for name, value in latest.fields.items():
1907-
if value > 200:
1907+
if len(value) > 200:
19081908
value = value[:200] + "..."
19091909

19101910
embed.add_field(name=name, value=value)

0 commit comments

Comments
 (0)