when I switched to the included enum, the unknown enum exception switched from KeyError to ValueError, this now fixes that..