File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,11 @@ def readFile(filename):
71
71
"""
72
72
theResult = None
73
73
try :
74
- with open (str ("""./{}""" ).format (str (filename ))) as f :
75
- theResult = f .read ()
74
+ if str ("""E.md""" ) not in filename :
75
+ raise NotImplementedError ("""[CWE-440] Not Implemented.""" )
76
+ else :
77
+ with open (str ("""./{}""" ).format (str (filename ))) as f :
78
+ theResult = f .read ()
76
79
except Exception :
77
80
theResult = str (
78
81
"""See https://github.com/reactive-firewall/python-repo/{}"""
@@ -81,8 +84,8 @@ def readFile(filename):
81
84
82
85
83
86
try :
84
- with open ("""./requirements.txt""" ) as f :
85
- requirements = f .read ().splitlines ()
87
+ with open ("""./requirements.txt""" ) as rfile :
88
+ requirements = rfile .read ().splitlines ()
86
89
except Exception :
87
90
requirements = None
88
91
You can’t perform that action at this time.
0 commit comments