Merge pull request #1044 from jakedt/errerror

Assign the exception to a variable to log it
This commit is contained in:
Jake Moshenko 2015-12-08 18:07:03 -05:00
commit 456806b662

View file

@ -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