Skip to content

Commit

Permalink
🐛 fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Mai-icy committed Apr 25, 2024
1 parent e97df7e commit 6f26781
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SpotifyLyricWindow/view/lyric_window/lyric_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,12 @@ def user_auth_button_event(self, *_):

self.text_show_signal.emit(1, "请根据页面完成授权", 0)
self.text_show_signal.emit(2, "ヾ(≧ ▽ ≦)ゝ", 0)
try:
self.spotify_auth.auth.receive_user_auth_code()
except OSError:
self.account_button.setEnabled(True)
raise UserError("端口8888被占用,请检查端口占用")

self.spotify_auth.auth.receive_user_auth_code()
driver.get("https://open.spotify.com/get_access_token?reason=transport&productType=web_player")
sp_dc = driver.get_cookie("sp_dc")["value"]
driver.quit()
Expand Down

0 comments on commit 6f26781

Please sign in to comment.