Skip to content

Commit

Permalink
fix file I/O issue
Browse files Browse the repository at this point in the history
  • Loading branch information
krishsharma0413 committed Sep 16, 2022
1 parent e2daaa3 commit baa22ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions DiscordLevelingCard/discord_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def card1(self)-> Union[None, bytes]:
self.background.save(self.path, "PNG")
return self.path
else:
with BytesIO() as image:
self.background.save(image, 'PNG')
image.seek(0)
return image
image = BytesIO()
self.background.save(image, 'PNG')
image.seek(0)
return image
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "discordlevelingcard"
version = "0.1.9"
version = "0.2.0"
readme = "README.md"
description = "A library with leveling cards for your discord bot."
repository = "https://github.com/ResetXD/DiscordLevelingCard"
Expand Down

0 comments on commit baa22ae

Please sign in to comment.