From a7744ee66d8ef633441ffb5c62ac1f37ea207358 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Mon, 23 Jun 2014 17:25:06 +0000 Subject: Also catch IOError Failure to remove the temp file due to full disk or other IO error is acceptable. --- lorrycontroller/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.1