Fix for passwd.js not existing
This commit is contained in:
parent
5310d86248
commit
186aab8163
1 changed files with 4 additions and 4 deletions
|
@ -399,11 +399,11 @@ class userProfile(object):
|
|||
self.userprofile["autojoins"] = []
|
||||
self.autojoins = self.userprofile["autojoins"]
|
||||
|
||||
with open(_datadir+"passwd.js") as fp:
|
||||
try:
|
||||
try:
|
||||
with open(_datadir+"passwd.js") as fp:
|
||||
self.passwd = json.load(fp)
|
||||
except ValueError, e:
|
||||
self.passwd = {}
|
||||
except Exception, e:
|
||||
self.passwd = {}
|
||||
self.autoidentify = False
|
||||
self.nickservpass = ""
|
||||
if self.chat.handle in self.passwd:
|
||||
|
|
Loading…
Reference in a new issue