Skip to content

Commit

Permalink
[2320] Add Missing Hull Entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed Dec 20, 2024
1 parent a87edfe commit 340b6a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
'Ship': entry["Ship"],
'ShipName': entry['ShipName'],
'ShipIdent': entry['ShipIdent'],
'HullValue': entry['HullValue'],
'ModulesValue': entry['ModulesValue'],
'HullValue': entry.get('HullValue', 0),
'ModulesValue': entry.get('ModulesValue', 0),
'Rebuy': entry['Rebuy'],
'MaxJumpRange': entry['MaxJumpRange'],
'UnladenMass': entry['UnladenMass'],
Expand Down Expand Up @@ -2151,7 +2151,7 @@ def game_running(self) -> bool:
try:
with p.oneshot():
if p.status() not in [psutil.STATUS_RUNNING, psutil.STATUS_SLEEPING]:
raise psutil.NoSuchProcess
raise psutil.NoSuchProcess(p.pid)
except psutil.NoSuchProcess:
# Process likely expired
self.running_process = None
Expand Down

0 comments on commit 340b6a0

Please sign in to comment.