[entropy.cache] catch AttributeError, variable can be None
This commit is contained in:
@@ -152,7 +152,11 @@ class EntropyCacher(Singleton):
|
||||
__alive becomes False.
|
||||
"""
|
||||
# make sure our set delay is respected
|
||||
self.__cache_writer.set_delay(EntropyCacher.WRITEBACK_TIMEOUT)
|
||||
try:
|
||||
self.__cache_writer.set_delay(EntropyCacher.WRITEBACK_TIMEOUT)
|
||||
except AttributeError:
|
||||
# can be None
|
||||
pass
|
||||
|
||||
while self.__alive or run_until_empty:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user