update segdb wrapper function to better capture errors
segdb appears to throw a wide variety of errors. We now trap all of them and skip segments when there is a bad query.
segdb appears to throw a wide variety of errors. We now trap all of them and skip segments when there is a bad query.