Add exception to prevent script crash