* src/GrampsDb/_GrampsDbBase.py: prevent null event types and
attribute types from being added * src/Editors/_EditAttribute.py: prevent null attribute types * src/Editors/_EditEvent.py: prevent null attribute types * src/AutoComp.py: filter out empty strings * src/ImgManip.py: check for file before attempting thumbnailer svn: r6898
This commit is contained in:
@@ -116,7 +116,7 @@ def _build_thumb_path(path):
|
||||
return os.path.join(const.thumb_dir, m.hexdigest()+'.png')
|
||||
|
||||
def run_thumbnailer(mtype, frm, to, size=const.thumbScale):
|
||||
if const.use_thumbnailer:
|
||||
if const.use_thumbnailer and os.path.isfile(frm):
|
||||
sublist = {
|
||||
'%s' : "%dx%d" % (int(size),int(size)),
|
||||
'%u' : frm,
|
||||
|
||||
Reference in New Issue
Block a user