aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/mllib
diff options
context:
space:
mode:
authorDavies Liu <davies@databricks.com>2016-06-24 14:35:34 -0700
committerDavies Liu <davies.liu@gmail.com>2016-06-24 14:35:34 -0700
commitd48935400ca47275f677b527c636976af09332c8 (patch)
treecbdfbdcbeb2b8df6ee9a7e6399bf5220fe31c8af /python/pyspark/mllib
parenta4851ed05053a9b7545a258c9159fd529225c455 (diff)
downloadspark-d48935400ca47275f677b527c636976af09332c8.tar.gz
spark-d48935400ca47275f677b527c636976af09332c8.tar.bz2
spark-d48935400ca47275f677b527c636976af09332c8.zip
[SPARK-16077] [PYSPARK] catch the exception from pickle.whichmodule()
## What changes were proposed in this pull request? In the case that we don't know which module a object came from, will call pickle.whichmodule() to go throught all the loaded modules to find the object, which could fail because some modules, for example, six, see https://bitbucket.org/gutworth/six/issues/63/importing-six-breaks-pickling We should ignore the exception here, use `__main__` as the module name (it means we can't find the module). ## How was this patch tested? Manual tested. Can't have a unit test for this. Author: Davies Liu <davies@databricks.com> Closes #13788 from davies/whichmodule.
Diffstat (limited to 'python/pyspark/mllib')
0 files changed, 0 insertions, 0 deletions