Skip to content

Commit

Permalink
Fixed bug when an igc track is not readable
Browse files Browse the repository at this point in the history
  • Loading branch information
biuti committed Nov 15, 2022
1 parent 0c6542f commit ac15c12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airscore/core/pilot/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def process(
pass
try:
return Track(fixes, a_records, h_records, i_records, config)
except IndexError:
except (IndexError, AttributeError) as e:
print(f"Error creating Track from {filename.name}: {e}")
return None
# return flight

0 comments on commit ac15c12

Please sign in to comment.