- with open("LICENSE.txt") as l:
- license = l.read()
- long_description = "Could not open README.html"
- with open("readme.html") as r:
- long_description = r.read()
+ try:
+ with open("LICENSE.txt") as l:
+ license = l.read()
+ except:
+ license = "Could not open file LICENSE.txt"
+ try:
+ with open("index.html") as r:
+ long_description = r.read()
+ except:
+ long_description = "Unable to read index.html"