diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-03-08 10:54:26 -0600 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-03-08 10:54:26 -0600 |
commit | ee570ddfeb750df7e2b58dd08a683b957ea08983 (patch) | |
tree | 276ee0bd6794f90874783f4a69d48abcb5d0b7d1 /csci4131/hw4/strap012 | |
parent | fix form (diff) | |
download | homework-ee570ddfeb750df7e2b58dd08a683b957ea08983.tar homework-ee570ddfeb750df7e2b58dd08a683b957ea08983.tar.gz homework-ee570ddfeb750df7e2b58dd08a683b957ea08983.tar.bz2 homework-ee570ddfeb750df7e2b58dd08a683b957ea08983.tar.lz homework-ee570ddfeb750df7e2b58dd08a683b957ea08983.tar.xz homework-ee570ddfeb750df7e2b58dd08a683b957ea08983.tar.zst homework-ee570ddfeb750df7e2b58dd08a683b957ea08983.zip |
rearrange
Diffstat (limited to 'csci4131/hw4/strap012')
-rw-r--r-- | csci4131/hw4/strap012/strap012.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csci4131/hw4/strap012/strap012.py b/csci4131/hw4/strap012/strap012.py index f498222..df63e4f 100644 --- a/csci4131/hw4/strap012/strap012.py +++ b/csci4131/hw4/strap012/strap012.py @@ -23,9 +23,9 @@ def check_perms(resource): def getContents(type, file): returnValue = "".encode() try: - content = open(file, 'rb') if not check_perms(file): raise PermissionError + content = open(file, 'rb') except FileNotFoundError: returnValue = NOT_FOUND.encode() with open("404.html", "rb") as fof: |