cc-4388: Fixed.

This commit is contained in:
Rudi Grinberg 2012-09-10 17:40:03 -04:00
parent 3fc60c741d
commit 0dab4fa231
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ def organized_path(old_path, root_path, orig_md):
filepath = None
ext = extension(old_path)
def default_f(dictionary, key):
if key in dictionary: return len(dictionary[key]) == 0
if key in dictionary: return len(str(dictionary[key])) == 0
else: return True
# We set some metadata elements to a default "unknown" value because we use
# these fields to create a path hence they cannot be empty Here "normal"