NewLife/XCoder

捕获异常
大石头 authored at 2019-11-13 16:05:48
1c4d7e9
Tree
1 Parent(s) dcd0024
Summary: 1 changed files with 6 additions and 1 deletions.
Modified +6 -1
Modified +6 -1
diff --git a/XCoderLinux/GtkHelper.cs b/XCoderLinux/GtkHelper.cs
index f1cd806..c5cb87c 100644
--- a/XCoderLinux/GtkHelper.cs
+++ b/XCoderLinux/GtkHelper.cs
@@ -68,7 +68,12 @@ namespace XCoder
                 if (File.Exists(gtk))
                 {
                     GtkPath = item.FullName;
-                    Version = new Version(item.Name.TrimStart('v', 'V'));
+
+                    try
+                    {
+                        Version = new Version(item.Name.TrimStart('v', 'V'));
+                    }
+                    catch { }
 
                     break;
                 }