Skip to content

Commit

Permalink
fix cc78197
Browse files Browse the repository at this point in the history
  • Loading branch information
Belissimo-T committed Jul 31, 2024
1 parent c263a28 commit 29fac5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion seekers/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def __init__(self, local_ai_locations: typing.Iterable[str], config: Config,
self._logger.warning("Config option `global.wait-for-players=false` is not supported for local players.")

if grpc_address and len(self.players) < config.global_players:
from seekers.grpc.server import GrpcSeekersServer
try:
from seekers.grpc.server import GrpcSeekersServer
self.grpc = GrpcSeekersServer(self, grpc_address)
except ImportError as e:
self._logger.warning("gRPC server could not be started. Import error.", exc_info=e)
Expand Down
3 changes: 2 additions & 1 deletion seekers/goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from . import (
physical,
camp,
player,
)

__all__ = [
Expand All @@ -16,7 +17,7 @@ class Goal(physical.Physical):
def __init__(self, scoring_time: float, base_thrust: float, *args, **kwargs):
physical.Physical.__init__(self, *args, **kwargs)

self.owner = None
self.owner: player.Player | None = None
self.time_owned: int = 0

self.scoring_time = scoring_time
Expand Down

0 comments on commit 29fac5e

Please sign in to comment.