aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131
diff options
context:
space:
mode:
Diffstat (limited to 'csci4131')
-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: