Skip to content

Commit

Permalink
Fixed logs removal
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmstr committed Sep 2, 2021
1 parent 4fed22d commit 2630717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/uds/core/managers/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def clearLogs(self, wichObject: 'Model'):
"""

owner_type = transDict.get(type(wichObject), None)
if owner_type:
if owner_type is not None:
self.__clearLogs(owner_type, wichObject.id)
else:
logger.debug('Requested clearLogs for a type of object not covered: %s', wichObject)

0 comments on commit 2630717

Please sign in to comment.