Assign the exception to a variable to log it

This commit is contained in:
Jake Moshenko 2015-12-08 18:03:48 -05:00
parent 7badcd633a
commit e00365b225

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