Skip to content

Commit 9145a6b

Browse files
HappyBase version 1.0.0 changed how thrift exception are handled
The AlreadyExists exception is in 'Hbase_thrift' module instead of the 'happybase.hbase.ttypes' one.
1 parent ff8b389 commit 9145a6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/main/resources/application_registrar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import logging
2424
import json
2525
import happybase
26-
from happybase.hbase.ttypes import AlreadyExists
26+
from Hbase_thrift import AlreadyExists
2727

2828
from lifecycle_states import ApplicationState
2929

api/src/main/resources/package_registrar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import logging
2424
import json
2525
import happybase
26-
from happybase.hbase.ttypes import AlreadyExists
26+
from Hbase_thrift import AlreadyExists
2727

2828
from package_parser import PackageParser
2929

0 commit comments

Comments
 (0)