Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions swan_mcs/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ def get_gateway(self):
gateway = res["data"][0]
return gateway
else:
logging.error("\033[31m Please check your APIkey and access token, or "
"check whether the current network environment corresponds to the APIkey.\033[0m")
logging.error("\033[31m Get Gateway error\033[0m")
return


def api_key_login(self):
params = {'apikey': self.api_key, 'access_token': self.access_token, 'network': self.chain_name}
# if params.get('apikey') == '' or params.get('access_token') == '' or params.get('chain_name') == '':
Expand Down