diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-06-23 17:25:06 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-06-23 17:26:32 +0000 |
commit | a7744ee66d8ef633441ffb5c62ac1f37ea207358 (patch) | |
tree | e34a797340e4d1b776d2a7fb6f6a0d65e5e17a59 | |
parent | a6fe2850c531dff9c5009ee1fcd30862391d79f1 (diff) | |
download | lorry-controller-a7744ee66d8ef633441ffb5c62ac1f37ea207358.tar.gz |
Also catch IOError
Failure to remove the temp file due to full disk or other IO error
is acceptable.
-rw-r--r-- | lorrycontroller/status.py | 2 |
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. |