try: return str(self.db['users'][self.db['ranks'][num]]['points'])
except: return 0
+ status = False
try:
f = open(self.db['hofpath'], 'rb+')
for i in range(self.db['hoflines']): #skip this many lines
'thirdscore': pts(2),
})
f.write(fcontents)
- return True
+ status = True
except Exception as e:
- raise e #FIXME wtf???
- return False
+ status = False
finally:
f.close()
+ return status
def endPointVote(self):
self.getchan().msg("Voting has ended!")