def _drop_view(self, cursor): try: cursor.execute(self._drop_view_sql()) except ProgrammingError: cursor.execute(self._drop_table_sql())