Skip to content

Commit 3867014

Browse files
committed
fix: enhance error handling for failing to get token scenario (fixes #94)
1 parent 7db9a96 commit 3867014

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

StreamLabsTikTokStreamKeyGenerator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ def fetch_online_token(self):
412412
except Exception as e:
413413
if "Chrome not found" in str(e):
414414
QMessageBox.critical(self, "Error", "Google Chrome not found. Please install it to use this feature.")
415-
return
415+
else:
416+
QMessageBox.critical(self, "Error", f"Unexpected error: {e}")
417+
return
418+
416419
if token:
417420
self.token_entry.setText(token)
418421
self.stream = Stream(token)

0 commit comments

Comments
 (0)