【Python】AttributeError: 'dict' object has no attribute 'has_key'
概要
以下のエラーメッセージが表示されたので対処。
AttributeError: 'dict' object has no attribute 'has_key'
解決策
has_key
はpython3で使えないらしいので、inを使ってキーの存在確認を行う。
if 'Item' in raw_data: # code else: # code
参考
https://stackoverflow.com/questions/33727149/dict-object-has-no-attribute-has-key