Skip to content

Commit

Permalink
Fix merge issue, improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPelletier committed Oct 18, 2023
1 parent 2d9dbc8 commit 5c14aa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ net_rid_sims:
$content_schema: monitoring/uss_qualifier/resources/definitions/ResourceDeclaration.json
resource_type: resources.netrid.FlightDataResource
specification:
kml_file:
path: file://./test_data/che/rid/foca.kml
kml_source:
kml_file:
path: file://./test_data/che/rid/foca.kml
flight_start_delay: 5s

flight_auth:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from datetime import timedelta
from typing import List, Optional
import uuid
Expand Down Expand Up @@ -49,7 +50,8 @@ def __init__(self, specification: FlightDataSpecification):
)
else:
raise ValueError(
"A source of flight data was not identified in the specification for a FlightDataSpecification"
"A source of flight data was not identified in the specification for a FlightDataSpecification:\n"
+ json.dumps(specification, indent=2)
)
self._flight_start_delay = specification.flight_start_delay.timedelta

Expand Down

0 comments on commit 5c14aa0

Please sign in to comment.