The Iran war could not have come at a worse time for Sri Lanka, reeling from devastating floods and an economic crisis.