make TLE parser robust against decayed satellites in the database

eph-store
bert hubert 2020-07-21 11:17:28 +02:00
parent f91a9c588f
commit 2fcee90254
1 changed files with 5 additions and 0 deletions

5
tle.cc
View File

@ -101,6 +101,11 @@ TLERepo::Match TLERepo::getBestMatch(time_t now, double x, double y, double z, T
// cerr<<"TLE error: "<<se.what()<<endl;
continue;
}
catch(DecayedException& se) {
// cerr<<"TLE error: "<<se.what()<<endl;
continue;
}
}
if(distances.empty())
return TLERepo::Match();