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

Database in unexpected state after uploading and shutting down #88

Open
eserzo opened this issue Sep 28, 2019 · 0 comments
Open

Database in unexpected state after uploading and shutting down #88

eserzo opened this issue Sep 28, 2019 · 0 comments

Comments

@eserzo
Copy link

eserzo commented Sep 28, 2019

After uploading a generated PLC and shutting down, every once in a while the database will be in an unexpected state.

Traceback (most recent call last):
File "webserver.py", line 1868, in
openplc_runtime.project_name = str(row[1])
TypeError: 'NoneType' object has no attribute 'getitem'

Where the workaround is (webserver.py)

row = cur.fetchone()
if row is not None:
openplc_runtime.project_name = str(row[1])
openplc_runtime.project_description = str(row[2])
openplc_runtime.project_file = str(row[3])

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

0 participants