Skip to content

Commit

Permalink
[2051] Wait we did account for that
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Nov 17, 2023
1 parent ff1f931 commit acfe9f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EDMarketConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,19 +1007,19 @@ def export_market_data(self, data: 'CAPIData') -> bool: # noqa: CCR001
commodities_flag = config.OUT_MKT_CSV | config.OUT_MKT_TD

if output_flags & config.OUT_STATION_ANY:
if not is_docked and not monitor.state['OnFoot'] and not self.status['text']:
if not is_docked and not monitor.state['OnFoot']:
# Signal as error because the user might actually be docked
# but the server hosting the Companion API hasn't caught up
# LANG: Player is not docked at a station, when we expect them to be
self._handle_status(_("You're not docked at a station!"))
return False

# Ignore possibly missing shipyard info
if output_flags & config.OUT_EDDN_SEND_STATION_DATA and not (has_commodities or has_modules) and not self.status['text']:
if output_flags & config.OUT_EDDN_SEND_STATION_DATA and not (has_commodities or has_modules):
# LANG: Status - Either no market or no modules data for station from Frontier CAPI
self._handle_status(_("Station doesn't have anything!"))

elif not has_commodities and not self.status['text']:
elif not has_commodities:
# LANG: Status - No station market data from Frontier CAPI
self._handle_status(_("Station doesn't have a market!"))

Expand Down

0 comments on commit acfe9f2

Please sign in to comment.