From b3667ea2604b1ec0de7a366d97c93c92a05e138d Mon Sep 17 00:00:00 2001 From: Luke Davidson Date: Sat, 19 Aug 2017 15:51:30 -0400 Subject: [PATCH] fix bug in upload_from_path method upload_from_path method was missing return statement. --- imgurpython/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgurpython/client.py b/imgurpython/client.py index 9c41ea6..197914a 100644 --- a/imgurpython/client.py +++ b/imgurpython/client.py @@ -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: