Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importするときに発生した例外を確認したい #52

Open
hkcomori opened this issue Jun 27, 2023 · 0 comments
Open

importするときに発生した例外を確認したい #52

hkcomori opened this issue Jun 27, 2023 · 0 comments

Comments

@hkcomori
Copy link

hkcomori commented Jun 27, 2023

ファイル分割したり、サードパーティ制ライブラリを使用するために、extensionディレクトリを活用しています。
これらをimportするときに例外が発生すると、Keyhacのコンソールウィンドウが真っ白のままフリーズします。

エラー原因を特定するために、例外の内容を確認したいのですが、良い方法は無いでしょうか?

再現用のファイルは以下のとおりです。

extension/hoge.py:

from .fuga import FUGA

def configure_hoge(keymap):
    print(FUGA)

extension/fuga.py:

raise RuntimeError
FUGA = 'fuga'

config.py:

from extension.hoge import configure_hoge

def configure(keymap):
    configure_hoge(keymap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant