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):
|
def ping(self):
|
||||||
"Test connection and re-establish if necessary"
|
"Test connection and re-establish if necessary"
|
||||||
|
if not self.con:
|
||||||
|
self.connect()
|
||||||
try:
|
try:
|
||||||
self.con.getinfo()
|
self.con.getinfo()
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue