Skip to content

Commit 180ddca

Browse files
committed
return upload information
now, 'upload_from_path' func on client.py did not return result information. but user need to it. then just return about upload infomation after call 'upload' func
1 parent 3a285f7 commit 180ddca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

imgurpython/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def get_image(self, image_id):
581581

582582
def upload_from_path(self, path, config=None, anon=True):
583583
with open(path, 'rb') as fd:
584-
self.upload(fd, config, anon)
584+
return self.upload(fd, config, anon)
585585

586586
def upload(self, fd, config=None, anon=True):
587587
if not config:

0 commit comments

Comments
 (0)