Skip to content

Commit

Permalink
Merge pull request feast-dev#45 from farfetch-external/handle_missing…
Browse files Browse the repository at this point in the history
…_readme

add exception handling when reading readme file
  • Loading branch information
ff-mriko-morandi authored Jun 25, 2020
2 parents 211828e + 0319262 commit 7eda606
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"numpy",
"google",
"confluent_kafka",
'boto3'
"boto3"
]

# README file from Feast repo root directory
Expand All @@ -56,9 +56,12 @@
.rstrip()
.decode("utf-8")
)
README_FILE = os.path.join(repo_root, "README.md")
with open(os.path.join(README_FILE), "r") as f:
LONG_DESCRIPTION = f.read()
try:
README_FILE = os.path.join(repo_root, "README.md")
with open(os.path.join(README_FILE), "r") as f:
LONG_DESCRIPTION = f.read()
except Exception as e:
LONG_DESCRIPTION = "A python SDK for Feast"

setup(
name=NAME,
Expand Down

0 comments on commit 7eda606

Please sign in to comment.