Skip to content

Commit cd6eb1c

Browse files
author
Jicheng Lu
committed
minor change
1 parent 558f01d commit cd6eb1c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Plugins/BotSharp.Plugin.PythonInterpreter/Services/PyCodeInterpreter.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,7 @@ public CodeInterpretResponse Run(string codeScript, CodeInterpretOptions? option
3131
{
3232
if (options?.UseLock == true)
3333
{
34-
try
35-
{
36-
return InnerRunWithLock(codeScript, options, cancellationToken);
37-
}
38-
catch (Exception ex)
39-
{
40-
_logger.LogError(ex, $"Error when using code script with {nameof(SemaphoreSlim)}.");
41-
return new() { ErrorMsg = ex.Message };
42-
}
34+
return InnerRunWithLock(codeScript, options, cancellationToken);
4335
}
4436

4537
return InnerRunCode(codeScript, options, cancellationToken);

0 commit comments

Comments
 (0)