brokkr / poca

A fast, multithreaded and highly customizable command line podcast client, written in Python 3
GNU General Public License v3.0
23 stars 4 forks source link

If subdata is a fluke... why don't we tell the while loop to continue? and inform update_q? #83

Closed brokkr closed 7 years ago

brokkr commented 7 years ago

poca: line 53

If the subdata we've been given have some kind of error, we simply output this and continue processing in the while loop. Some feed-related errors will be caught later on (due to bad statuses) but what about the subdata instances that quit due to bad db files, permissions, etc. and never got to get a feed.status. Unless I'm missing something vital here?

brokkr commented 7 years ago

We set subdata's status at init stage to 0. Only if we get to replacing it with feed's status have made it as far as we should. If status is till 0 when subdata is processed, we either returned before time or somehow feed did not have a status attribute - either of which is cause to throw aside the subdata instance.