| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -81,6 +81,7 @@ public bool TryDecode<T>(PyObject pyObj, out T value) | |||
| 81 | 81 | IntPtr pyItem = Runtime.PyTuple_GetItem(pyObj.Handle, itemIndex); | |
| 82 | 82 | if (!Converter.ToManaged(pyItem, itemTypes[itemIndex], out elements[itemIndex], setError: false)) | |
| 83 | 83 | { | |
| 84 | + Exceptions.Clear(); | ||
| 84 | 85 | return false; | |
| 85 | 86 | } | |
| 86 | 87 | } | |
@@ -105,6 +106,7 @@ static bool Decode(PyObject tuple, out object value) | |||
| 105 | 106 | var pyItem = Runtime.PyTuple_GetItem(tuple.Handle, itemIndex); | |
| 106 | 107 | if (!Converter.ToManaged(pyItem, typeof(object), out elements[itemIndex], setError: false)) | |
| 107 | 108 | { | |
| 109 | + Exceptions.Clear(); | ||
| 108 | 110 | return false; | |
| 109 | 111 | } | |
| 110 | 112 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments