Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #11 from splicemachine/DBAAS-2476/main
Browse files Browse the repository at this point in the history
DBAAS-2476: missing import, print exceptions
  • Loading branch information
njnygaard authored Apr 25, 2019
2 parents cb5657a + d22963d commit 7a3be05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
]
setup(
name="splicemachine",
version="0.4.0",
version="1.0.0",
install_requires=dependencies,
packages=find_packages(),
license='Apache License, Version 2.0',
Expand Down
5 changes: 3 additions & 2 deletions splicemachine/spark/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
"""
from __future__ import print_function

import os
from py4j.java_gateway import java_import
from pyspark.sql import DataFrame

Expand Down Expand Up @@ -228,7 +228,8 @@ def __init__(self, sparkSession, useH2O=False, _unit_testing=False):
try:
url = os.environ['JDBC_URL']
PySpliceContext.__init__(self, url, sparkSession, _unit_testing)
except:
except Exception as e:
print(e)
print('The SpliceMLContext is only for use on the cloud service. Please import and use the PySpliceContext instead.\nUsage:\n\tfrom splicemachine.spark.context import PySpliceContext\n\tsplice = PySpliceContext(jdbc_url, sparkSession)')
return -1
if useH2O:
Expand Down

0 comments on commit 7a3be05

Please sign in to comment.