Merge branch 'ss/corrupted-uidmap-file' into next
Conflicts: Changelog.draft.rst
This commit is contained in:
commit
e9a7afda6d
@ -21,6 +21,7 @@ Changes
|
|||||||
slight speedup.
|
slight speedup.
|
||||||
* No whitespace is stripped from comma-separated arguments passed via
|
* No whitespace is stripped from comma-separated arguments passed via
|
||||||
the -f option.
|
the -f option.
|
||||||
|
* Give more detailed error when encountering a corrupt UID mapping file.
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
---------
|
---------
|
||||||
|
@ -51,7 +51,11 @@ class MappingFolderMixIn:
|
|||||||
line = file.readline()
|
line = file.readline()
|
||||||
if not len(line):
|
if not len(line):
|
||||||
break
|
break
|
||||||
line = line.strip()
|
try:
|
||||||
|
line = line.strip()
|
||||||
|
except ValueError:
|
||||||
|
raise Exception("Corrupt line '%s' in UID mapping file '%s'" \
|
||||||
|
%(line, mapfilename))
|
||||||
(str1, str2) = line.split(':')
|
(str1, str2) = line.split(':')
|
||||||
loc = long(str1)
|
loc = long(str1)
|
||||||
rem = long(str2)
|
rem = long(str2)
|
||||||
|
Loading…
Reference in New Issue
Block a user