fix potential crashes
This commit is contained in:
		| @@ -106,15 +106,18 @@ class Euroscope: | ||||
|             entry = sequence.sequence.add() | ||||
|             entry.callsign = inbound.Callsign | ||||
|             entry.fixed = inbound.FixedSequence | ||||
|             if None != inbound.PlannedStar: | ||||
|                 entry.arrivalRoute = inbound.PlannedStar.Name | ||||
|             if None != inbound.PlannedRunway: | ||||
|                 entry.arrivalRunway = inbound.PlannedRunway.Name | ||||
|  | ||||
|             #performance = entry.performance.add() | ||||
|             if None != inbound.PerformanceData: | ||||
|                 entry.performance.iasAboveFL240 = int(round(inbound.PerformanceData.SpeedAboveFL240)) | ||||
|                 entry.performance.iasAboveFL100 = int(round(inbound.PerformanceData.SpeedAboveFL100)) | ||||
|                 entry.performance.iasBelowFL100 = int(round(inbound.PerformanceData.SpeedBelowFL100)) | ||||
|                 entry.performance.iasApproach = int(round(inbound.PerformanceData.SpeedApproach)) | ||||
|  | ||||
|             if None != inbound.PlannedArrivalRoute: | ||||
|                 for waypoint in inbound.PlannedArrivalRoute: | ||||
|                     wp = entry.waypoints.add() | ||||
|                     wp.name = waypoint.Waypoint.Name | ||||
|   | ||||
		Reference in New Issue
	
	Block a user