Browse Source

Catch harmless error seen in apache logs during shutdown

tags/nilmdb-1.9.8^0
Jim Paris 7 years ago
parent
commit
8bb8f068de
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      nilmdb/utils/serializer.py

+ 5
- 2
nilmdb/utils/serializer.py View File

@@ -117,7 +117,10 @@ def serializer_proxy(obj_or_type):
return ret

def __del__(self):
self.__call_queue.put((None, None, None, None))
self.__thread.join()
try:
self.__call_queue.put((None, None, None, None))
self.__thread.join()
except TypeError: # pragma: no cover
pass

return SerializerObjectProxy(obj_or_type)

Loading…
Cancel
Save