mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-14 02:14:15 +01:00
fix thrown hard exception in analyzer
This commit is contained in:
parent
afe6c75688
commit
a46c63c12a
1 changed files with 9 additions and 1 deletions
|
|
@ -90,7 +90,15 @@ public sealed class CharacterAnalyzer : MediatorSubscriberBase, IDisposable
|
||||||
|
|
||||||
var filePath = fileCacheEntries[0].ResolvedFilepath;
|
var filePath = fileCacheEntries[0].ResolvedFilepath;
|
||||||
FileInfo fi = new(filePath);
|
FileInfo fi = new(filePath);
|
||||||
var ext = fi.Extension[1..];
|
string ext = "unk?";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ext = fi.Extension[1..];
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogWarning(ex, "Could not identify extension for {path}", filePath);
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var entry in fileCacheEntries)
|
foreach (var entry in fileCacheEntries)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue