Skip to content

Commit

Permalink
Merge pull request #9 from Simage/source_key_error
Browse files Browse the repository at this point in the history
Handle "invalid" input
  • Loading branch information
mohierf committed Sep 14, 2015
2 parents 3f77758 + 30d9318 commit b9c771c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def get_graph_uris(self, elt, graphstart, graphend, source = 'detail'):
v = {}
v['link'] = self.uri
v['img_src'] = uri
v['img_src'] = self._replaceFontSize(v['img_src'], fontsize[source])
v['img_src'] = self._replaceFontSize(v['img_src'], fontsize.get(source,10))
r.append(v)
return r

Expand Down

0 comments on commit b9c771c

Please sign in to comment.