Skip to content

Commit 00bdca3

Browse files
committed
Fix double catch
1 parent a69e120 commit 00bdca3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This project exposes Cheat Engine functionality through a REST API server built
3030

3131
- **Cheat Engine 7.6.2+** (minimum version with .NET Core plugin support)
3232
- .NET 9.0 SDK
33-
- Windows OS
33+
- Windows OS (I don't have a mac but if you can run it then open an issue and let me know.)
3434

3535
> [!IMPORTANT]
3636
> Cheat Engine 7.6.2 or newer is required. Older versions do not support .NET Core plugins.

src/Tools/ThreadListTool.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,9 @@ private static string[] GetThreadList()
4343
threadList.Refresh(); // Refresh to get current threads
4444
return threadList.GetAllThreads();
4545
}
46-
catch (SystemException ex)
47-
{
48-
throw new InvalidOperationException("Failed to get thread list.", ex);
49-
}
5046
catch (Exception ex)
5147
{
52-
throw new InvalidOperationException("An unexpected error occurred while getting thread list.", ex);
48+
throw new InvalidOperationException("Failed to get thread list.", ex);
5349
}
5450
}
5551
}

0 commit comments

Comments
 (0)