Skip to content

Commit

Permalink
change Exception to TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
yanboliang committed Aug 27, 2015
1 parent 3842a6b commit b2d072d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/readwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def json(self, path, schema=None):
elif isinstance(path, RDD):
return self._df(self._jreader.json(path._jrdd))
else:
raise Exception("path can be only string or RDD")
raise TypeError("path can be only string or RDD")

@since(1.4)
def table(self, tableName):
Expand Down

0 comments on commit b2d072d

Please sign in to comment.