Skip to content

Commit c9e0328

Browse files
committedOct 2, 2014
1 parent 675ba9a commit c9e0328

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎python/plugins/GdalTools/tools/GdalTools_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,11 @@ def getFilterExtensions(self, aFilter):
476476

477477
@classmethod
478478
def getFilterName(self, aFilter):
479+
if isinstance(aFilter, list):
480+
if len(aFilter):
481+
aFilter = aFilter[0]
482+
else:
483+
aFilter = ""
479484
return string.strip(re.sub('\ \(.*$', '', aFilter))
480485

481486
@classmethod

0 commit comments

Comments
 (0)
Please sign in to comment.