Skip to content

Commit

Permalink
fix(image): now save method will return path string instead of the Pa…
Browse files Browse the repository at this point in the history
…th object (as documented)
  • Loading branch information
HanaokaYuzu committed May 26, 2024
1 parent d45b090 commit 67a1236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gemini_webapi/types/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def save(
if verbose:
logger.info(f"Image saved as {dest.resolve()}")

return dest.resolve()
return str(dest.resolve())
else:
raise HTTPError(
f"Error downloading image: {response.status_code} {response.reason_phrase}"
Expand Down

0 comments on commit 67a1236

Please sign in to comment.