Skip to content

Commit

Permalink
Fix flake8 error in util/twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmaymay authored Oct 12, 2023
1 parent 89411f3 commit dac64d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concrete/util/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def set_flat_fields(concrete_object, twitter_dict):
entries will be used to set fields on concrete_object
"""
for key in twitter_dict.keys():
if type(twitter_dict[key]) != dict:
if not isinstance(twitter_dict[key], dict):
camelcased_key = snake_case_to_camelcase(key)
if hasattr(concrete_object, camelcased_key):
setattr(concrete_object, camelcased_key, twitter_dict[key])
Expand Down

0 comments on commit dac64d3

Please sign in to comment.