Added handling of non-existent repositories