| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e2aff66 commit 462a429
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,7 @@ public void TestMessage() | |||
| 33 | 33 | } | |
| 34 | 34 | catch (PythonException e) | |
| 35 | 35 | { | |
| 36 | - Assert.AreEqual("exceptions.IndexError : list index out of range", e.Message); | ||
| 36 | + Assert.AreEqual("IndexError : list index out of range", e.Message); | ||
| 37 | 37 | } | |
| 38 | 38 | } | |
| 39 | 39 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ public PythonException() : base() | |||
| 34 | 34 | IntPtr gs = PythonEngine.AcquireLock(); | |
| 35 | 35 | if ((_pyType != IntPtr.Zero) && (_pyValue != IntPtr.Zero)) | |
| 36 | 36 | { | |
| 37 | - string type = new PyObject(_pyType).ToString(); | ||
| 37 | + string type = new PyObject(_pyType).GetAttr("__name__").ToString(); | ||
| 38 | 38 | string message = Runtime.GetManagedString(_pyValue); | |
| 39 | 39 | _message = type + " : " + message; | |
| 40 | 40 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments