viirya commented on a change in pull request #32650:
URL: https://github.com/apache/spark/pull/32650#discussion_r639183663
##########
File path: python/pyspark/context.py
##########
@@ -188,9 +188,9 @@ def _do_init(self, master, appName, sparkHome, pyFiles,
environment, batchSize,
# Check that we have at least the required parameters
if not self._conf.contains("spark.master"):
- raise Exception("A master URL must be set in your configuration")
+ raise TypeError("A master URL must be set in your configuration")
if not self._conf.contains("spark.app.name"):
- raise Exception("An application name must be set in your
configuration")
+ raise TypeError("An application name must be set in your
configuration")
Review comment:
Seems like `ValueError` or `RuntimeError`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]