Skip to content

Commit 0144e11

Browse files
committed
Small bug fixes
1 parent b4040b5 commit 0144e11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

prework.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,11 @@ def check_challenge_1():
108108
return True
109109
elif result == 2:
110110
print(f"🚧 Your command ran, but the contents of intro.txt don't seem to have changed. Please check your command and try again.")
111-
print(f"intro.txt still says:\n\t{new_content.decode()}\n")
112111
return False
113112
elif result == 4:
114113
print(f"🚧 Your command ran, but the file permissions for input changed when they shouldn't have. Please check your command and try again.")
115-
print(f"\tExpected permissions:\tintro.txt (644)")
116-
print(f"\tActual permissions:\tintro.txt ({new_perms})\n")
114+
print(f"\tOriginal permissions:\tpermanent.txt (644)")
115+
print(f"\tYour permissions:\tpermanent.txt ({oct(os.stat('permanent.txt').st_mode)[-3:]})\n")
117116
return False
118117
else:
119118
print("⛔ Sorry, that's not the right answer. Please make sure your challenge_1 command modifies the file's content, but not its' permissions.\n")

0 commit comments

Comments
 (0)