strへの変換を撤回
This commit is contained in:
parent
75fa89497e
commit
611bd03b80
1 changed files with 2 additions and 2 deletions
|
@ -687,7 +687,7 @@ class Bot(discord.Client):
|
|||
if os.path.isfile(dislocker.onetime_config_path):
|
||||
with open(dislocker.onetime_config_path, "r") as r:
|
||||
onetime_config = json.load(r)
|
||||
onetime = str(onetime_config["onetime"]["pc_register"])
|
||||
onetime = onetime_config["onetime"]["pc_register"]
|
||||
if onetime == None:
|
||||
onetime = str(self.password_generate(8))
|
||||
onetime_config["onetime"]["pc_register"] = onetime
|
||||
|
@ -711,7 +711,7 @@ class Bot(discord.Client):
|
|||
if os.path.isfile(dislocker.onetime_config_path):
|
||||
with open(dislocker.onetime_config_path, "r") as r:
|
||||
onetime_config = json.load(r)
|
||||
onetime = str(onetime_config["onetime"]["device_register"])
|
||||
onetime = onetime_config["onetime"]["device_register"]
|
||||
if onetime == None:
|
||||
onetime = str(self.password_generate(8))
|
||||
onetime_config["onetime"]["device_register"] = onetime
|
||||
|
|
Loading…
Reference in a new issue