I am trying to create a web map inventory and encountered a KeyError.
gis = GIS("Portal url", "username", "password")
search_results = gis.content.search(query="tags:streamflow", item_type="Web Map")
l = []
for s in search_results:
wmo = arcgis.mapping.WebMap(s)
ops_layers = wmo['operationalLayers']
basemap_layers = wmo['baseMap']['baseMapLayers']
KeyError: 'operationalLayers'
Any suggestions on how to handle KeyError?