code: def handle_bad_update(operation, ret):
      '''report error for bad update'''
      print("Error " + operation)
      sys.exit('Return code: ' + str(ret.status_code) + ' Error: ' + ret.textf handle_bad_update(operation, ret):
      '''report error for bad update'''
      print("Error " + operation)
      sys.exit('Return code: ' + str(ret.status_code) + ' Error: ' + ret.text)
docs: report error for bad update