better checking for empty string on replace
This commit is contained in:
parent
c1e6bf36e9
commit
43fd99fae9
3
utils.py
3
utils.py
|
@ -114,6 +114,9 @@ def replacePlaceNames(old, new, operator="", start=0, end=100):
|
||||||
value = m['value']
|
value = m['value']
|
||||||
new_value = value.replace(old, new).strip()
|
new_value = value.replace(old, new).strip()
|
||||||
if new_value = '':
|
if new_value = '':
|
||||||
|
log = "EMPTY VALUE: %s" % m['id']
|
||||||
|
logFile.write(log)
|
||||||
|
print log
|
||||||
continue
|
continue
|
||||||
ret.append(api.editAnnotation({
|
ret.append(api.editAnnotation({
|
||||||
'id': m['id'],
|
'id': m['id'],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user