Explorar o código

rm useless import

Rony %!s(int64=2) %!d(string=hai) anos
pai
achega
7832a0dd01
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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():