From: Fraxinas Date: Wed, 17 Jun 2009 07:31:07 +0000 (+0200) Subject: don't crash when removing of temp. files failes X-Git-Tag: 2.6.0~237^2 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/3455b60a05c4c3f7a59c2e5949f132bb04134969 don't crash when removing of temp. files failes --- diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py index 6d9a4491..9a37c14e 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/Process.py +++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py @@ -166,7 +166,10 @@ class DemuxTask(Task): if failed: import os for file in self.generated_files: - os.remove(file) + try: + os.remove(file) + except OSError: + pass class MplexTaskPostcondition(Condition): def check(self, task):