Browse Source

Merge branch 'dev' into stable-swarm

pull/495/head
JT 9 months ago committed by GitHub
parent
commit
e0b2d6b308
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 11
      StabilityMatrix.Core/Services/SettingsManager.cs

1
CHANGELOG.md

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
- Improved error messages with process output for 7z extraction errors - Improved error messages with process output for 7z extraction errors
- Fixed missing tkinter dependency for OneTrainer on Windows - Fixed missing tkinter dependency for OneTrainer on Windows
- Fixed auto-update on macOS not starting new version from an issue in starting .app bundles with arguments - Fixed auto-update on macOS not starting new version from an issue in starting .app bundles with arguments
- Fixed [#436](https://github.com/LykosAI/StabilityMatrix/issues/436) - Crash on invalid json files during checkpoint indexing
## v2.8.0 ## v2.8.0
### Added ### Added

11
StabilityMatrix.Core/Services/SettingsManager.cs

@ -425,6 +425,12 @@ public class SettingsManager : ISettingsManager
foreach (var jsonFile in connectedModelJsons) foreach (var jsonFile in connectedModelJsons)
{ {
var json = File.ReadAllText(jsonFile); var json = File.ReadAllText(jsonFile);
if (string.IsNullOrWhiteSpace(json))
continue;
try
{
var connectedModel = JsonSerializer.Deserialize<ConnectedModelInfo>(json); var connectedModel = JsonSerializer.Deserialize<ConnectedModelInfo>(json);
if (connectedModel?.Hashes.BLAKE3 != null) if (connectedModel?.Hashes.BLAKE3 != null)
@ -432,6 +438,11 @@ public class SettingsManager : ISettingsManager
modelHashes.Add(connectedModel.Hashes.BLAKE3); modelHashes.Add(connectedModel.Hashes.BLAKE3);
} }
} }
catch (Exception e)
{
Logger.Warn(e, "Failed to parse connected model info from {JsonFile}", jsonFile);
}
}
Transaction(s => s.InstalledModelHashes = modelHashes); Transaction(s => s.InstalledModelHashes = modelHashes);

Loading…
Cancel
Save