summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lorrycontroller/status.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lorrycontroller/status.py b/lorrycontroller/status.py
index 22bdb0b..40bf964 100644
--- a/lorrycontroller/status.py
+++ b/lorrycontroller/status.py
@@ -75,7 +75,7 @@ class StatusRenderer(object):
def remove_temp_file(self, temp_filename):
try:
os.remove(temp_filename)
- except OSError:
+ except (OSError, IOError):
# Ignore a problem with removing. Don't ignore all
# exceptions to avoid catching variable names being
# mistyped, etc.