call the function exc_type with an argument string "Unsupported value: %r. You should install pytz.", replace '%s' with dt,
exc_value = exc_type ( "Unsupported value: %r. You should install pytz." % dt )