Handle os.remove failing on windows
This commit is contained in:
parent
94f96c5165
commit
d800273891
|
@ -263,7 +263,10 @@ class TrackerIcons(Component):
|
|||
break
|
||||
parser.close()
|
||||
f.close()
|
||||
os.remove(page)
|
||||
try:
|
||||
os.remove(page)
|
||||
except Exception, e:
|
||||
log.warning("Couldn't remove temp file: %s", e)
|
||||
return parser.get_icons()
|
||||
|
||||
def on_parse_complete(self, icons, host):
|
||||
|
|
Loading…
Reference in New Issue