Avoid throwing exceptions when called by IDE