Skip to content

Commit 005a364

Browse files
committed
fix attribute error
1 parent ecca0b1 commit 005a364

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
'''
2424

25-
__version__ = '1.4.2'
25+
__version__ = '1.4.3'
2626

2727
from contextlib import redirect_stdout
2828
from urllib.parse import urlparse
@@ -350,6 +350,7 @@ async def update(self, ctx):
350350

351351
em.color = discord.Color.red()
352352
return await ctx.send(embed=em)
353+
353354
user = await Github.login(self, access_token)
354355
data = await user.update_repository()
355356

@@ -361,7 +362,7 @@ async def update(self, ctx):
361362
message = data['commit']['message']
362363
html_url = data["html_url"]
363364
short_sha = data['sha'][:6]
364-
em.add_field(name='Merge Commit', value=f'[`{short_sha}`]({html_url}) {message} - [`{user.name}`]({user.url})')
365+
em.add_field(name='Merge Commit', value=f'[`{short_sha}`]({html_url}) {message} - [`{user.username}`]({user.url})')
365366
else:
366367
em.description = 'Already up to date with master repository.'
367368

0 commit comments

Comments
 (0)