Rony 2 anni fa
parent
commit
7832a0dd01
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      coingecko_price.py

+ 1 - 2
coingecko_price.py

@@ -1,6 +1,5 @@
 import json
 
-import pandas as pd
 from pycoingecko import CoinGeckoAPI
 from rediscluster import RedisCluster
 # from redis import Redis
@@ -76,7 +75,7 @@ def get_pancakeswap_price(contract):
         price = round(float(ret.json()['data']['price']), 2)
         print(price)
     except:
-        traceback.print_exec()
+        traceback.print_exc()
     return price
 
 def get_token_price():