Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _table_exists(self, table, **kwargs):
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except:
return False
finally:
logger.disabled = False
def _table_exists(self, table, **kwargs):
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except:
return False
finally:
logger.disabled = False
def _table_exists(self, table, **kwargs):
from pyhive.exc import DatabaseError
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except DatabaseError:
return False
finally:
logger.disabled = False
def _table_exists(self, table, **kwargs):
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except:
return False
finally:
logger.disabled = False
def _table_exists(self, table, **kwargs):
from pyhive.exc import DatabaseError
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except DatabaseError:
return False
finally:
logger.disabled = False
def _table_exists(self, table, **kwargs):
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except:
return False
finally:
logger.disabled = False
def _table_exists(self, table, **kwargs):
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except:
return False
finally:
logger.disabled = False
def _table_exists(self, table, **kwargs):
logger.disabled = True
try:
self.table_desc(table, **kwargs)
return True
except:
return False
finally:
logger.disabled = False