Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

total_seconds sometimes still crashes program #17

Open
VitoMinheere opened this issue Sep 9, 2019 · 0 comments
Open

total_seconds sometimes still crashes program #17

VitoMinheere opened this issue Sep 9, 2019 · 0 comments

Comments

@VitoMinheere
Copy link
Contributor

I see that in #14 total_seconds = 0 was added ti music_api.py line 250

However i still get the error

  File "/usr/lib/python3.7/site-packages/yTermPlayer/ui.py", line 71, in update_name
    temp = self.player_object.get_time_details()
  File "/usr/lib/python3.7/site-packages/yTermPlayer/music_api.py", line 258, in get_time_details
    minutes = int(total_seconds / 60)
UnboundLocalError: local variable 'total_seconds' referenced before assignment

I confirmed that i am on version 1.2.2

$ pip list | grep yTerm
yTermPlayer        1.2.2

I will add in some debug statements so i will know more about the state when it happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant