Finally got a chance to dig in my scripts, and it was this call. This is probably ugly as heck, but my apparent solution from October: for port in switchportsList:
switchNum = port['number']
empties = []
for key, value in port.items():
if value == None:
empties.append(key)
for item in empties:
try:
port.pop(item)
except:
print(f"Couldn't pop {item}")
putSwitchport(arg_apikey, arg_serial, port, switchNum, shard)
... View more