#15 Bug with unsplash_random_image function

Open
opened 1 year ago by Dryusdan · 0 comments
Dryusdan commented 1 year ago

Receive on execution

Traceback (most recent call last):
  File "./bot.py", line 281, in <module>
    main()
  File "./bot.py", line 258, in main
    resp       = post_unsplash_random_image(mastodon, log, config_file)
  File "./bot.py", line 89, in post_unsplash_random_image
    pattern      = Image.open(BytesIO(img_response.content), "r").convert('RGB')
  File "/home/masto-bot/.local/lib/python3.5/site-packages/PIL/Image.py", line 2585, in open
    % (filename if filename else fp))
OSError: cannot identify image file <_io.BytesIO object at 0x7f73984ac780>
Receive on execution ``` Traceback (most recent call last): File "./bot.py", line 281, in <module> main() File "./bot.py", line 258, in main resp = post_unsplash_random_image(mastodon, log, config_file) File "./bot.py", line 89, in post_unsplash_random_image pattern = Image.open(BytesIO(img_response.content), "r").convert('RGB') File "/home/masto-bot/.local/lib/python3.5/site-packages/PIL/Image.py", line 2585, in open % (filename if filename else fp)) OSError: cannot identify image file <_io.BytesIO object at 0x7f73984ac780> ```
Dryusdan added the
bug
label 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.