Skip to content

Fix unbound local error.#51

Open
aljungberg wants to merge 1 commit intoaria1th:mainfrom
aljungberg:patch-1
Open

Fix unbound local error.#51
aljungberg wants to merge 1 commit intoaria1th:mainfrom
aljungberg:patch-1

Conversation

@aljungberg
Copy link

Fixes UnboundLocalError: local variable 'hypernetwork' referenced before assignment error in finally block if the code in the try-catch raises an exception before hypernetwork has been set.

Fixes `UnboundLocalError: local variable 'hypernetwork' referenced before assignment` error in finally block if the code in the try-catch raises an exception before `hypernetwork` has been set.
@aria1th
Copy link
Owner

aria1th commented May 23, 2023

Good catch, but its real problem is in train_hypernetwork_external(*args) part, do you have any error log related to it?
Usually when it throws error, UnboundLocalError is not really important error, its giving you minor stack trace(...)

@aljungberg
Copy link
Author

Oh yeah thanks for asking! I actually already figured the real error out (I specified the wrong template path so it crashed). The extra error on the undefined variable threw me off at first though so hoping this fix might help someone else.

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

Successfully merging this pull request may close these issues.

2 participants