You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(.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'
The text was updated successfully, but these errors were encountered:
I changed is not in line 181 to != and this is the output:
The text was updated successfully, but these errors were encountered: