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

Fix error-handling when when "None"-type for ID is given in database #16

Open
SvenRoederer opened this issue Aug 21, 2019 · 0 comments
Open

Comments

@SvenRoederer
Copy link
Collaborator

@MicDiFebo made it to add the following record into the database:

+----------+-------------------+---------------------+
| id       | name              | timestamp           |
+----------+-------------------+---------------------+
| None     | Mic               | 2019-08-21 17:26:25 |

this caused a fatal excetion on startup of registry:

pi@b33rnary-c0unter:/home/b33rnary-c0unt3r/b33rn4rycounter $ ./B33rn4ryRegistry.py
Traceback (most recent call last):
File "./B33rn4ryRegistry.py", line 200, in
window.refreshUserTable()
File "./B33rn4ryRegistry.py", line 68, in refreshUserTable
pID = str(int(row[0][2:], 16))
ValueError: invalid literal for int() with base 16: 'ne'

@ziehmon ziehmon added the bug label Jul 19, 2023
@ziehmon ziehmon changed the title fatal fail when "none" id is in Database FIx error-handling when when "None"-type for ID is given in database Jul 19, 2023
@ziehmon ziehmon changed the title FIx error-handling when when "None"-type for ID is given in database Fix error-handling when when "None"-type for ID is given in database Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants