Checking the return value properly. Or, just going for it and catching exceptions:
price_from_extruct = data_from_extruct['offer']['amount']
price_from_extruct = 0 # If you really wanted to do this.
The thing is, I find exceptions a good way of handling complex and arbitrary error flows. If you don't have a good story for what to do, trying to avoid the exceptions is just causing more headaches later.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.