Fixed too broad exception clauses in the project
This commit is contained in:
committed by
Konstantin Gukov
parent
9e9703183f
commit
ddedc1ee92
@@ -981,7 +981,7 @@ class MapReduceDocument(object):
|
||||
if not isinstance(self.key, id_field_type):
|
||||
try:
|
||||
self.key = id_field_type(self.key)
|
||||
except:
|
||||
except Exception:
|
||||
raise Exception("Could not cast key as %s" %
|
||||
id_field_type.__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user