We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b8730a commit c2194feCopy full SHA for c2194fe
setup.py
@@ -28,13 +28,14 @@
28
def readFile(filename):
29
"""Helper Function to read files"""
30
theResult = None
31
- try:
32
- with open(str("""./{}""").format(str(filename))) as f:
33
- theResult = f.read()
34
- except Exception:
35
- theResult = str(
36
- """See https://github.com/reactive-firewall/python-repo/{}"""
37
- ).format(filename)
+ if filename in ("""README.md""", """LICENSE.md"""):
+ try:
+ with open(str("""./{}""").format(str(filename))) as f:
+ theResult = f.read()
+ except Exception:
+ theResult = str(
+ """See https://github.com/reactive-firewall/python-repo/{}"""
38
+ ).format(filename)
39
return theResult
40
41
0 commit comments