From c6f8b63ba6404e4692a357a47c83bc209d3b96c6 Mon Sep 17 00:00:00 2001 From: Bincheng Wu Date: Thu, 11 May 2023 10:19:13 -0400 Subject: [PATCH] fix variable scope by declaring it --- rsconnect/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rsconnect/api.py b/rsconnect/api.py index 93de701a..19251c86 100644 --- a/rsconnect/api.py +++ b/rsconnect/api.py @@ -848,6 +848,7 @@ def validate_app_mode(self, *args, **kwargs): raise RSConnectException("Specify either a new deploy or an app ID but not both.") existing_app_mode = None + app_store_version = 0 if not new: if app_id is None: # Possible redeployment - check for saved metadata.