From 92fe39ddac5703e8198a4f1e2bcf81901b14b8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 19 Dec 2017 10:45:34 +0100 Subject: [PATCH] Prevent shadowing of name from outer scope --- pillar/api/blender_cloud/subscription.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pillar/api/blender_cloud/subscription.py b/pillar/api/blender_cloud/subscription.py index e6fe6fe9..ef906579 100644 --- a/pillar/api/blender_cloud/subscription.py +++ b/pillar/api/blender_cloud/subscription.py @@ -31,7 +31,7 @@ def update_subscription() -> typing.Tuple[str, int]: """ my_log: logging.Logger = log.getChild('update_subscription') - current_user = auth.get_current_user() + real_current_user = auth.get_current_user() # multiple accesses, just get unproxied. try: bid_user = blender_id.fetch_blenderid_user() @@ -41,10 +41,10 @@ def update_subscription() -> typing.Tuple[str, int]: if not bid_user: my_log.warning('Logged in user %s has no BlenderID account! ' - 'Unable to update subscription status.', current_user.user_id) + 'Unable to update subscription status.', real_current_user.user_id) return '', 204 - do_update_subscription(current_user, bid_user) + do_update_subscription(real_current_user, bid_user) return '', 204