Fixed logs removal

This commit is contained in:
Adolfo Gómez García 2021-09-02 13:23:04 +02:00
parent 4fed22d39d
commit 263071750c

View File

@ -153,7 +153,7 @@ class LogManager:
""" """
owner_type = transDict.get(type(wichObject), None) owner_type = transDict.get(type(wichObject), None)
if owner_type: if owner_type is not None:
self.__clearLogs(owner_type, wichObject.id) self.__clearLogs(owner_type, wichObject.id)
else: else:
logger.debug('Requested clearLogs for a type of object not covered: %s', wichObject) logger.debug('Requested clearLogs for a type of object not covered: %s', wichObject)