添加异常处理以捕获 HandleEpisode 方法中的错误
This commit is contained in:
@@ -150,8 +150,15 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
|
|||||||
ctn.episodeNfoPath = episode;
|
ctn.episodeNfoPath = episode;
|
||||||
|
|
||||||
_logger.LogInformation("ctn.episodeNfoPath: " + ctn.episodeNfoPath);
|
_logger.LogInformation("ctn.episodeNfoPath: " + ctn.episodeNfoPath);
|
||||||
|
|
||||||
await HandleEpisode();
|
try
|
||||||
|
{
|
||||||
|
await HandleEpisode();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user