FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ModuleObject __getattribute__ doesn't treat exceptions ocurred during internal GetAttribute · Issue #1047 · pythonnet/pythonnet · GitHub

Repository navigation

ModuleObject __getattribute__ doesn't treat exceptions ocurred during internal GetAttribute #1047

Closed

Description

Environment

  • Pythonnet version: 2.4.0
  • Python version: 3.7.6
  • Operating System: Windows 10

Details

From Python code, using clr, when trying to access a class 'Plugin' inside a ModuleObject an exception System.IO.FileNotFoundException is thrown (this isn't a bug on pythonnet) and is never caught, so it isn't converted into a python exception.
The program aborts abnormally, and the Python code never receives the exception.

   module_clr = __import__(namespace_assembly)
   if 'ModuleObject' in self.modulo_clr.__class__.__name__:
      plugin = module_clr.Plugin

Activity

  1. added 2 commits that reference this issue on Feb 20, 2020
  2. added a commit that references this issue on Feb 22, 2020
  3. lostmsu commented on Feb 22, 2020

    Member

    Since #1048 is merged, I am closing this issue. Please, open if it resurfaces on master

  4. added 2 commits that reference this issue on Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL