CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
169 stars 47 forks source link

Handle zero length .config file #214

Closed g7gpr closed 9 months ago

g7gpr commented 9 months ago

https://github.com/CroatianMeteorNetwork/RMS/issues/213

Report of a crash of EventMonitor following parsing a zero length .config file found in a CapturedFiles directory. This fix uses the station .config file in this event.

dvida commented 9 months ago

Would you mind if I merge it into the eventmonitor branch first for some testing? It's probably not a necessary fix though, RMS won't run well with a zero-length config file anyway (or at least it shouldn't). If it does, then we need to put the catch somewhere else up the chain.

g7gpr commented 9 months ago

Yes, good idea. Let me know if you need me to do anything.

dvida commented 9 months ago

I changed the base but it has some conflicts, would you mind fixing them? You know best which lines should be modified. Thanks!