Skip to content

Commit

Permalink
Update client_mediator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Nov 26, 2023
1 parent 42882d4 commit d782169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion straders_sdk/client_mediator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ def contracts_fulfill(self, contract: "Contract") -> SpaceTradersResponse:
"""/my/contracts/{contractId}/fulfill"""
start = datetime.now()
resp = self.api_client.contracts_fulfill(contract)
if resp.error_code == 4504:
if not resp and resp.error_code == 4504:
contract.fulfilled = True
self.logging_client.contracts_fulfill(
contract, resp, (datetime.now() - start).total_seconds()
Expand Down

0 comments on commit d782169

Please sign in to comment.