Skip to content

Commit

Permalink
Fix crash with no field found
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jun 8, 2017
1 parent 7dde4b7 commit 0649ec3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/roam/api/featureform.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@ def setupui(self):

widgetconfig = config.get('config', {})
widgetconfig['formwidget'] = self
qgsfield = fields[field]
try:
qgsfield = fields[field]
except KeyError:
utils.log("No field for ({}) found".format(field))

context = dict(project=self.form.project,
form=self.form,
featureform=self)
Expand Down

0 comments on commit 0649ec3

Please sign in to comment.