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

Commit 7a3be05

Browse files
authored
Merge pull request #11 from splicemachine/DBAAS-2476/main
DBAAS-2476: missing import, print exceptions
2 parents cb5657a + d22963d commit 7a3be05

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
]
3434
setup(
3535
name="splicemachine",
36-
version="0.4.0",
36+
version="1.0.0",
3737
install_requires=dependencies,
3838
packages=find_packages(),
3939
license='Apache License, Version 2.0',

splicemachine/spark/context.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
"""
1616
from __future__ import print_function
17-
17+
import os
1818
from py4j.java_gateway import java_import
1919
from pyspark.sql import DataFrame
2020

@@ -228,7 +228,8 @@ def __init__(self, sparkSession, useH2O=False, _unit_testing=False):
228228
try:
229229
url = os.environ['JDBC_URL']
230230
PySpliceContext.__init__(self, url, sparkSession, _unit_testing)
231-
except:
231+
except Exception as e:
232+
print(e)
232233
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)')
233234
return -1
234235
if useH2O:

0 commit comments

Comments
 (0)