Skip to content

Commit

Permalink
avoid reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Aug 14, 2023
1 parent 1028c06 commit df98020
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sql/engines/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ class OracleEngine(EngineBase):

def __init__(self, instance=None):
super(OracleEngine, self).__init__(instance=instance)
self.service_name = instance.service_name
self.sid = instance.sid
if instance:
self.service_name = instance.service_name
self.sid = instance.sid

def get_connection(self, db_name=None):
if self.conn:
Expand Down

0 comments on commit df98020

Please sign in to comment.