Skip to content

Commit

Permalink
fix InvariantException back to Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanElsaban committed Jan 29, 2024
1 parent 979f1da commit a7b38d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tron/core/actionrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from typing import Set
from typing import Union

from pyrsistent import InvariantException
from twisted.internet import reactor

from tron import command_context
Expand Down Expand Up @@ -1176,7 +1175,7 @@ def submit_command(self, attempt: ActionRunAttempt) -> Optional[KubernetesTask]:
service_account_name=attempt.command_config.service_account_name,
ports=attempt.command_config.ports,
)
except InvariantException:
except Exception:
log.exception(f"Unable to create task for ActionRun {self.id}")
self.fail(exitcode.EXIT_KUBERNETES_TASK_INVALID)
return None
Expand Down

0 comments on commit a7b38d0

Please sign in to comment.