(self)
| 56 | raise BMObjectInsufficientPOWError() |
| 57 | |
| 58 | def checkEOLSanity(self): |
| 59 | # EOL sanity check |
| 60 | if self.expiresTime - int(time.time()) > BMObject.maxTTL: |
| 61 | logger.info('This object\'s End of Life time is too far in the future. Ignoring it. Time is %i', self.expiresTime) |
| 62 | # TODO: remove from download queue |
| 63 | raise BMObjectExpiredError() |
| 64 | |
| 65 | if self.expiresTime - int(time.time()) < BMObject.minTTL: |
| 66 | logger.info('This object\'s End of Life time was too long ago. Ignoring the object. Time is %i', self.expiresTime) |
| 67 | # TODO: remove from download queue |
| 68 | raise BMObjectExpiredError() |
| 69 | |
| 70 | def checkStream(self): |
| 71 | if self.streamNumber not in state.streamsInWhichIAmParticipating: |
no test coverage detected