nacho commited on
Commit
99cb7cd
·
1 Parent(s): fc44ec7

fix: guard against None browser when reading mute status

Browse files
Files changed (1) hide show
  1. account_manager.py +2 -2
account_manager.py CHANGED
@@ -101,8 +101,8 @@ class AccountManager:
101
  account.logged_in = True
102
  account.error_count = 0
103
  account.last_error = ""
104
- account.is_muted = account.browser.is_muted()
105
- account.muted_until = account.browser.muted_until()
106
  else:
107
  try:
108
  await account.browser.page.evaluate("1+1", timeout=3000)
 
101
  account.logged_in = True
102
  account.error_count = 0
103
  account.last_error = ""
104
+ account.is_muted = account.browser.is_muted() if account.browser else False
105
+ account.muted_until = account.browser.muted_until() if account.browser else ""
106
  else:
107
  try:
108
  await account.browser.page.evaluate("1+1", timeout=3000)