Skip to content

Commit 1eef13a

Browse files
committed
Prevent crash when comparing None and int
1 parent 7fa466b commit 1eef13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edr/edrsystems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def station(self, star_system, station_name, station_type, pad_count_override=No
826826

827827
for station in stations:
828828
if station["name"] == station_name:
829-
if station_type == "FleetCarrier" and pad_count_override > 16:
829+
if pad_count_override and (station_type == "FleetCarrier" and pad_count_override > 16):
830830
station = station.copy()
831831
station["type"] = "squadron carrier"
832832
if station.get("economy", "").lower() in ["fleetcarrier", "fleet carrier"]:

0 commit comments

Comments
 (0)