Skip to content

Commit

Permalink
Handle unicode exception in setup.py
Browse files Browse the repository at this point in the history
Related to #45
Closes #46, #47
  • Loading branch information
Saurabh Kumar committed Feb 3, 2017
1 parent cf9d4f0 commit 4805fc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ Executing the tests:
Changelog
=========

0.6.2
----
- Handle unicode exception in setup.py (`#46 <https://github.com/theskumar/python-dotenv/issues/45>`__)
0.6.2
----
- Fix `dotenv list` command (`@ticosax`_)
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# -*- coding: utf-8 -*-
from setuptools import setup

with open('README.rst') as readme_file:
readme = readme_file.read()
# https://github.com/theskumar/python-dotenv/issues/45#issuecomment-277135416
try:
with open('README.rst') as readme_file:
readme = readme_file.read()
except:
readme = 'Checkout http://github.com/theskumar/python-dotenv for more details.'

setup(
name="python-dotenv",
Expand Down

0 comments on commit 4805fc8

Please sign in to comment.