Having trouble with the ruuvitag-logger.py script resulting in error when checking if database exists before creating it.
Any suggestions on how to resolve?
pi@raspi:~/ruuvitag $ ./ruuvitag-logger.py
Traceback (most recent call last):
File “./ruuvitag-logger.py”, line 50, in
if cursor.fetchone()[0] != “sensors”:
TypeError: ‘NoneType’ object is not subscriptable