Update site.py

This commit is contained in:
Aurora Lanes 2020-01-28 06:26:52 +00:00 committed by GitHub
parent 96820cea3e
commit f44a305fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -453,10 +453,10 @@ def enablerlcompleter():
if os.getuid() == 0:
chattrcmd = "chattr -i " + history
os.system(chattrcmd)
else
else:
chattrmsg = "Permission error!, try running 'chattr -i " + history + "'"
print(chattrmsg)
else
else:
print("An error occured while writing to .python_history")
atexit.register(write_history)