aboutsummaryrefslogtreecommitdiff
path: root/generalresearch/managers/thl/wallet/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'generalresearch/managers/thl/wallet/__init__.py')
-rw-r--r--generalresearch/managers/thl/wallet/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/generalresearch/managers/thl/wallet/__init__.py b/generalresearch/managers/thl/wallet/__init__.py
index f805872..1f0c30b 100644
--- a/generalresearch/managers/thl/wallet/__init__.py
+++ b/generalresearch/managers/thl/wallet/__init__.py
@@ -59,13 +59,13 @@ def manage_pending_cashout(
user = user_manager.get_user(user_uuid=pe.account_reference_uuid)
user.prefetch_product(user_manager.mysql_user_manager.pg_config)
- assert (
- user.product.user_wallet_enabled
- ), "manage_pending_cashout called on user without managed wallet"
+ assert user.product.user_wallet_enabled, (
+ "manage_pending_cashout called on user without managed wallet"
+ )
assert not user.blocked, "manage_pending_cashout: Blocked user"
- assert not user_ip_history_manager.is_user_anonymous(
- user
- ), "manage_pending_cashout: Anonymous user"
+ assert not user_ip_history_manager.is_user_anonymous(user), (
+ "manage_pending_cashout: Anonymous user"
+ )
# Just assign it with direct casting/type annotation
payout_event_manager: PayoutEventManager = user_payout_event_manager