From b3efb6b5d4c4dee59e98e86c7673cf628d242bd7 Mon Sep 17 00:00:00 2001 From: Freddy Tan Date: Sun, 20 Nov 2016 01:44:35 +0800 Subject: [PATCH] fix description --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7498776..7648478 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,11 @@ module_name = 'python-terraform' short_description = 'This is a python module provide a wrapper ' \ 'of terraform command line tool' -with open('DESCRIPTION.rst') as f: - long_description = f.read() +try: + with open('DESCRIPTION.rst') as f: + long_description = f.read() +except IOError: + long_description = short_description def get_version():