Skip to content

Commit

Permalink
Fix age inference
Browse files Browse the repository at this point in the history
  • Loading branch information
guillett committed Jul 13, 2018
1 parent 3cdf0f0 commit 822dc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfisca_france/scenarios.py
Expand Up @@ -514,7 +514,7 @@ def find_age(individu, date, default = None):

age = individu.get('age')
if isinstance(age, dict):
age = age.values()[0] if age else None
age = next(iter(age.values())) if age else None
if age is not None:
return age

Expand Down

0 comments on commit 822dc8d

Please sign in to comment.