TokenRiskError

Documentation for eth_defi.token_analysis.tokenrisk.TokenRiskError exception.

exception TokenRiskError

Bases: Exception

Wrap bad API replies from Token Risk.

  • Has attribute status_code

Parameters

status_code – to reflect the HTTP code (e.g. 404 if Token Risk does not have data)

__init__(msg, status_code, address)
Parameters
  • status_code (int) – to reflect the HTTP code (e.g. 404 if Token Risk does not have data)

  • msg (str) –

  • address (str) –

__new__(**kwargs)
add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.