RepoVersion TryReadRepoFile(IAbsoluteFilePath path) {
try {
return SyncEvilGlobal.Yaml.NewFromYamlFile<RepoVersion>(path);
} catch (YamlParseException e) {
this.Logger().FormattedWarnException(e, _mod.Name);
return new RepoVersion();
} catch (YamlExpectedOtherNodeTypeException e) {
this.Logger().FormattedWarnException(e, _mod.Name);
return new RepoVersion();
}
}
}