Fix error loading module - connection wasn't defined when pinged on startup

This commit is contained in:
dave 2015-11-01 18:16:51 -08:00
parent 1f9e7225a4
commit bd1260040f
1 changed files with 2 additions and 0 deletions

View File

@ -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: