From b7dca1ab4c80d4e3a333b53ae1f82a5c266ca1a9 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Mon, 14 Mar 2022 16:19:20 +0000 Subject: [PATCH] update per pr comments --- pretix_eth/network/tokens.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pretix_eth/network/tokens.py b/pretix_eth/network/tokens.py index 62b31182..5917fba4 100644 --- a/pretix_eth/network/tokens.py +++ b/pretix_eth/network/tokens.py @@ -46,12 +46,12 @@ def __init__(self): self._set_other_token_constants() def _validate_class_variables(self): - if not ( - self.NETWORK_IDENTIFIER - and self.NETWORK_VERBOSE_NAME - and self.NETWORK_UNISWAP_NAME - and self.TOKEN_SYMBOL - ): + if not all([ + self.NETWORK_IDENTIFIER, + self.NETWORK_VERBOSE_NAME, + self.NETWORK_UNISWAP_NAME, + self.TOKEN_SYMBOL + ]): raise ValueError( "Please provide network_identifier, verbose name, " + "uniswap url name, token symbol for this class"