Merge pull request #1044 from jakedt/errerror
Assign the exception to a variable to log it
This commit is contained in:
commit
456806b662
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue