Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix bug in upload_from_path method
upload_from_path method was missing return statement.
  • Loading branch information
david138 authored Aug 19, 2017
commit b3667ea2604b1ec0de7a366d97c93c92a05e138d
2 changes: 1 addition & 1 deletion imgurpython/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def get_image(self, image_id):

def upload_from_path(self, path, config=None, anon=True):
with open(path, 'rb') as fd:
self.upload(fd, config, anon)
return self.upload(fd, config, anon)

def upload(self, fd, config=None, anon=True):
if not config:
Expand Down