py: simplify exception throwing in load_system_repo().