From fe5271361f588cf194e5a4cdf6d3060c6c2772bc Mon Sep 17 00:00:00 2001 From: ping Date: Wed, 11 Apr 2018 14:59:42 +0800 Subject: [PATCH] Fix UnboundLocalError --- instagram_web_api/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instagram_web_api/client.py b/instagram_web_api/client.py index d4a1127b..d1a03c7f 100644 --- a/instagram_web_api/client.py +++ b/instagram_web_api/client.py @@ -198,7 +198,8 @@ def generate_request_signature(self, query): csrf_token=self.csrftoken, variables=query.get('variables') ).encode('utf-8')) - return m.hexdigest() + return m.hexdigest() + return None def _make_request(self, url, params=None, headers=None, query=None, return_response=False, get_method=None):