We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98d8760 commit b7dca1aCopy full SHA for b7dca1a
1 file changed
pretix_eth/network/tokens.py
@@ -46,12 +46,12 @@ def __init__(self):
46
self._set_other_token_constants()
47
48
def _validate_class_variables(self):
49
- if not (
50
- self.NETWORK_IDENTIFIER
51
- and self.NETWORK_VERBOSE_NAME
52
- and self.NETWORK_UNISWAP_NAME
53
- and self.TOKEN_SYMBOL
54
- ):
+ if not all([
+ self.NETWORK_IDENTIFIER,
+ self.NETWORK_VERBOSE_NAME,
+ self.NETWORK_UNISWAP_NAME,
+ self.TOKEN_SYMBOL
+ ]):
55
raise ValueError(
56
"Please provide network_identifier, verbose name, "
57
+ "uniswap url name, token symbol for this class"
0 commit comments