Convert values returned from pycdio to str (workaround for upstream bug)

This commit is contained in:
dioltas
2013-03-06 19:12:03 +00:00
parent 8348c910bc
commit 35f568181f

View File

@@ -34,7 +34,8 @@ def _listify(listOrString):
def getAllDevicePaths():
try:
return _getAllDevicePathsPyCdio()
# see https://savannah.gnu.org/bugs/index.php?38477
return [str(dev) for dev in _getAllDevicePathsPyCdio()]
except ImportError:
log.info('drive', 'Cannot import pycdio')
return _getAllDevicePathsStatic()