Correctly return an error icon and not the error icon's id

This commit is contained in:
Roberto Rosario
2012-09-30 03:00:17 -04:00
parent de9b716e77
commit 3b9a5080b5

View File

@@ -94,7 +94,7 @@ class IconSetBase(object):
# return '%s%s/%s/%s/%s' % (settings.STATIC_URL, ICONSETS_STATIC_DIRECTORY, self.directory, size, self.dictionary.get(icon.id, ERROR))
def get_major_minor(self, icon):
return self.dictionary.get(icon.id, ERROR)
return self.dictionary.get(icon.id, self.dictionary.get(ERROR))
def compose(self, icon, size):
try: