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

UnboundLocalError fix when config_file is None #13

Merged
merged 1 commit into from
May 1, 2023

Conversation

bitwalt
Copy link
Contributor

@bitwalt bitwalt commented Apr 30, 2023

When config_file is None we get
TypeError: init() should return None, not 'UnboundLocalError' since cfileis None on
self._in_key = cfile["in_key"]

Also added a check on the existence of the file

@bitkarrot bitkarrot merged commit e0ffcc0 into lightningames:main May 1, 2023
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