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

user_io load bug fix #1

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

user_io load bug fix #1

wants to merge 3 commits into from

Conversation

k1o0
Copy link

@k1o0 k1o0 commented Aug 2, 2022

We encountered an uninformative error using pyBpod. For whatever reason the software had created an empty user config file. The subsequent exception was pretty opaque:

20220729_161713

In this PR we add a check for the config file existing and having a non-zero file size. We also modify the exception message which appeared to have been copied from the subject_io.py module without changes and without string format input.

I don't know if returning without loading would cause problems downstream. Perhaps you can look into that and if it does, modify the projects loader to check for this.

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