reduce exception message tested for py311 compat
reduce exception message tested for py311 compat

Change-Id: I519d4a840fd456ea042a5b0735da183a1e340aa4

sqlalchemy/mako,zzzeek/mako,sqlalchemy/mako,zzzeek/mako