Catch exception when calculating current version