Don't crash on repos without objstore

Check if altrepo is non-None before checking if it's an objstore repo.

Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
1 file changed