Revision 2650ea6b lib/storage/filestorage.py

b/lib/storage/filestorage.py
207 207
  try:
208 208
    CheckFileStoragePathAcceptance(path, _filename=_allowed_paths_file,
209 209
                                   exact_match_ok=True)
210
  except errors.FileStoragePathError, e:
211
    return e.message
210
  except errors.FileStoragePathError as e:
211
    return str(e)
212 212
  if not os.path.isdir(path):
213 213
    return "Path '%s' is not exisiting or not a directory." % path
214 214
  if not os.access(path, os.W_OK):

Also available in: Unified diff