Send correct data to Sentry

Here, `msg` is not defined, so it raises a NameError.