After effects of enum change

This commit is contained in:
SimplifiedPrivacy 2026-11-08 10:21:40 -05:00
parent 16a6499c72
commit b32e3a0c14

View file

@ -181,7 +181,7 @@ def use_ticket_orchestrator(
################################### ###################################
if not server_reply.valid: if not server_reply.valid:
logger.info("Server's reply is invalid") logger.info("Server's reply is invalid")
if server_reply.error_type == ServerError.ALREADY_USED and server_reply.billing_code: if server_reply.error_type in (ServerError.ALREADY_USED, ResultError.ALREADY_USED) and server_reply.billing_code:
logger.info("But it's because it's re-using a previously valid billing code. Continue..") logger.info("But it's because it's re-using a previously valid billing code. Continue..")
else: else:
logger.error("Returning a failure..") logger.error("Returning a failure..")