Fix error loading module - connection wasn't defined when pinged on startup
This commit is contained in:
parent
1f9e7225a4
commit
bd1260040f
|
@ -64,6 +64,8 @@ class DogeController:
|
|||
|
||||
def ping(self):
|
||||
"Test connection and re-establish if necessary"
|
||||
if not self.con:
|
||||
self.connect()
|
||||
try:
|
||||
self.con.getinfo()
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue