Skip to content

Commit 17b9f60

Browse files
committed
fix: initialize token variable before searching for apiToken in files
1 parent 9a63903 commit 17b9f60

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

StreamLabsTikTokStreamKeyGenerator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ def load_local_token(self):
354354
# Define the regex pattern to search for the apiToken
355355
token_pattern = re.compile(r'"apiToken":"([a-f0-9]+)"', re.IGNORECASE)
356356

357+
token = None
358+
357359
# Loop through files and search for the token pattern
358360
for file in files:
359361
try:

0 commit comments

Comments
 (0)