HyukjinKwon commented on a change in pull request #32650:
URL: https://github.com/apache/spark/pull/32650#discussion_r639321465



##########
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")

Review comment:
       ```suggestion
               raise ValueError("A master URL must be set in your 
configuration")
   ```




-- 
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]

Reply via email to