|
@@ -50,7 +50,12 @@ def getImage(setup, row, field, extraPath=None):
|
|
|
if extraPath!=None:
|
|
|
pathList.append(extraPath)
|
|
|
pathList.append(row[field])
|
|
|
- remotePath='/'.join(pathList)
|
|
|
+ try:
|
|
|
+ #if row[field] is None, this fails
|
|
|
+ remotePath='/'.join(pathList)
|
|
|
+ except TypError:
|
|
|
+ #return marker for failed
|
|
|
+ return "NONE"
|
|
|
urlPath=fb.formatPathURL(setup['project'],remotePath)
|
|
|
localPath=os.path.join(setup['localDir'],row[field])
|
|
|
if os.path.isfile(localPath):
|