From e00365b225ad7f454982e9198756cc1ab5dc4428 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Tue, 8 Dec 2015 18:03:48 -0500 Subject: [PATCH] Assign the exception to a variable to log it --- storage/basestorage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/basestorage.py b/storage/basestorage.py index e5db17788..37d473177 100644 --- a/storage/basestorage.py +++ b/storage/basestorage.py @@ -106,7 +106,7 @@ class BaseStorage(StoragePaths): break out_fp.write(buf) bytes_copied += len(buf) - except IOError: + except IOError as err: logger.error('Failed to stream_write_to_fp: %s', err) break