aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131/hw4
diff options
context:
space:
mode:
authorRossTheRoss <mstrapp@protonmail.com>2021-03-08 10:54:26 -0600
committerRossTheRoss <mstrapp@protonmail.com>2021-03-08 10:54:26 -0600
commitee570ddfeb750df7e2b58dd08a683b957ea08983 (patch)
tree276ee0bd6794f90874783f4a69d48abcb5d0b7d1 /csci4131/hw4
parentfix form (diff)
downloadhomework-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')
-rw-r--r--csci4131/hw4/strap012/strap012.py2
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: