How did I miss those parentheses?
This commit is contained in:
parent
1830b1be75
commit
d23ef4ae66
2
toot.py
2
toot.py
|
@ -14,7 +14,7 @@ if not exists("usercred.secret"):
|
|||
chmod("clientcred.secret",0o600)
|
||||
tmp = Mastodon(client_id="clientcred.secret",api_base_url="https://tilde.zone")
|
||||
with open("details.secret") as f:
|
||||
tmp.log_in(f.readline().strip(),f.readline.strip(),to_file="usercred.secret")
|
||||
tmp.log_in(f.readline().strip(),f.readline().strip(),to_file="usercred.secret")
|
||||
chmod("usercred.secret",0o600)
|
||||
elif getmod("usercred.secret")!=0o600:
|
||||
chmod("usercred.secret",0o600)
|
||||
|
|
Loading…
Reference in New Issue