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

not working in debian sid #2

Open
santosadrian opened this issue Nov 21, 2020 · 0 comments
Open

not working in debian sid #2

santosadrian opened this issue Nov 21, 2020 · 0 comments

Comments

@santosadrian
Copy link

(.crypto) user@moesmo:~$ python3 crypto.py
crypto.py:181: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if coin is not 'BTC':
Traceback (most recent call last):
  File "crypto.py", line 77, in <module>
    bp = round(float(globalData['data']['btc_dominance']), 2)
KeyError: 'data'

I changed is not in line 181 to != and this is the output:

(.crypto) user@moesmo:~$ python3 crypto.py
Traceback (most recent call last):
  File "crypto.py", line 77, in <module>
    bp = round(float(globalData['data']['btc_dominance']), 2)
KeyError: 'data'
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