| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f5548e3 commit 8ae5cf4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -280,7 +280,18 @@ public static IntPtr tp_getattro(IntPtr ob, IntPtr key) | |||
| 280 | 280 | return self.dict; | |
| 281 | 281 | } | |
| 282 | 282 | ||
| 283 | - ManagedType attr = self.GetAttribute(name, true); | ||
| 283 | + ManagedType attr = null; | ||
| 284 | + | ||
| 285 | + try | ||
| 286 | + { | ||
| 287 | + attr = self.GetAttribute(name, true); | ||
| 288 | + } | ||
| 289 | + catch (Exception e) | ||
| 290 | + { | ||
| 291 | + Exceptions.SetError(e); | ||
| 292 | + return IntPtr.Zero; | ||
| 293 | + } | ||
| 294 | + | ||
| 284 | 295 | ||
| 285 | 296 | if (attr == null) | |
| 286 | 297 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments