Skip to content

Commit

Permalink
no need for try except
Browse files Browse the repository at this point in the history
  • Loading branch information
bodbdigr committed Feb 20, 2018
1 parent 942ef74 commit 05a47db
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
from setuptools import setup

f = open("README.rst")
try:
try:
readme_content = f.read()
except Exception:
readme_content = ""
finally:
f.close()
readme_content = ''
with open("README.rst") as f:
readme_content = f.read()

setup(
name='restea',
Expand Down

0 comments on commit 05a47db

Please sign in to comment.