On gauge theories for non-semisimple groups