No point storing exception in a variable that is never used.
Handle api.no domain as a special case when looking up realm.