Created
October 26, 2018 14:08
-
-
Save johnmanjiro13/8abc2283f7f9f06c52e757e2f0c13c7e to your computer and use it in GitHub Desktop.
decorate get_json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
@try_except(exreturn_value="except!") | |
def get_json(json_data): | |
return json.loads(json_data) # 正常時:JSONのデータをもつdict、例外時:except! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment