init: add a try/except to retain compatibility with Mercurial 3.2

Without the try/except, hg-git crashes with Mercurial 3.2. Oops.
init: assert compatibility with Mercurial 3.2.2