Fixed too broad exception clauses in the project
This commit is contained in:
committed by
Konstantin Gukov
parent
9e9703183f
commit
ddedc1ee92
9
setup.py
9
setup.py
@@ -10,11 +10,12 @@ except ImportError:
|
||||
|
||||
DESCRIPTION = 'MongoEngine is a Python Object-Document ' + \
|
||||
'Mapper for working with MongoDB.'
|
||||
LONG_DESCRIPTION = None
|
||||
|
||||
try:
|
||||
LONG_DESCRIPTION = open('README.rst').read()
|
||||
except:
|
||||
pass
|
||||
with open('README.rst') as fin:
|
||||
LONG_DESCRIPTION = fin.read()
|
||||
except Exception:
|
||||
LONG_DESCRIPTION = None
|
||||
|
||||
|
||||
def get_version(version_tuple):
|
||||
|
||||
Reference in New Issue
Block a user