def _update_version_file(self):
        try:
            save(self.file_version_path, str(self.current_version))
        except Exception:
            raise ConanException("Can't write version file in %s" % self.file_version_path)
dataset/ETHPy150Open conan-io/conan/conans/migrations.py/Migrator._update_version_file/original