Commit 6c0b21c0 authored by Nicolas Dumazet's avatar Nicolas Dumazet

silence exceptions in __del__ method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42367 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b85c1cf6
...@@ -181,6 +181,8 @@ class SkinDataCleanup: ...@@ -181,6 +181,8 @@ class SkinDataCleanup:
def __del__(self): def __del__(self):
tid = self.tid tid = self.tid
if SKINDATA is None:
return
skindata = SKINDATA.get(tid) skindata = SKINDATA.get(tid)
if skindata is not None: if skindata is not None:
if self.hashSkinData(skindata) == self.skindata_id: if self.hashSkinData(skindata) == self.skindata_id:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment