Skip to content

Commit

Permalink
Fix inasafe#2132 - backported string conversion when reading minimum …
Browse files Browse the repository at this point in the history
…needs to master branch
  • Loading branch information
timlinux committed Jul 20, 2015
1 parent 6b9a13f commit fec8607
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions safe/gui/tools/minimum_needs/needs_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ def get_needs_parameters(self):
precision_influence = [
'Maximum allowed', 'Minimum allowed', 'Default']
for element in precision_influence:
if resource[element] is not None and '.' in resource[element]:
precisions.append(self.precision_of(resource[element]))
resource_element = str(resource[element])
if resource[element] is not None and '.' in resource_element:
precisions.append(self.precision_of(resource_element))

parameter.precision = max(precisions)
parameters.append(parameter)
Expand Down

0 comments on commit fec8607

Please sign in to comment.