HAS_SVN is set to False before the try. so if the import fails it should still be false. I can move it to the except, but it should work...