File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ class PrestoError(Exception):
40
40
pass
41
41
42
42
43
+ class DatabaseError (Exception ):
44
+ pass
45
+
46
+
43
47
class PrestoQueryError (Exception ):
44
48
def __init__ (self , error ):
45
49
self ._error = error
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def commit(self):
95
95
try :
96
96
list (query .execute ())
97
97
except Exception as err :
98
- raise prestodb .exceptions .DatabaseErrror (
98
+ raise prestodb .exceptions .DatabaseError (
99
99
'failed to commit transaction {}: {}' .format (self ._id , err ))
100
100
101
101
def rollback (self ):
@@ -104,5 +104,5 @@ def rollback(self):
104
104
try :
105
105
list (query .execute ())
106
106
except Exception as err :
107
- raise prestodb .exceptions .DatabaseErrror (
107
+ raise prestodb .exceptions .DatabaseError (
108
108
'failed to rollback transaction {}: {}' .format (self ._id , err ))
You can’t perform that action at this time.
0 commit comments