Added try except to import API key from scrapi or local settings