Fix deprecation warning.
BaseException.message is deprecated; if you have an exception of type Exception (or subclass thereof), then "str(ex)" is the preferred way to get the message. Change-Id: I5b4acf88de538c1ef0f2db4fefaa92699937cd50
This commit is contained in:
parent
ee3db40b1b
commit
f63b58f5b7
@ -938,7 +938,7 @@ class DiskFile(object):
|
||||
return read_metadata(source)
|
||||
except Exception as err:
|
||||
self._quarantine(quarantine_filename,
|
||||
"Exception reading metadata: %s" % err.message)
|
||||
"Exception reading metadata: %s" % err)
|
||||
|
||||
def _construct_from_data_file(self, data_file, meta_file):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user