Skip to content

Commit

Permalink
owsql: Catch the new BackendError too (avoids crash)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzagar committed Jul 7, 2017
1 parent 8f5ef4a commit f88f2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/data/owsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get_table(self):
with self.backend.execute_sql_query("ANALYZE " + self.materialize_table_name):
pass
self.table = self.materialize_table_name
except psycopg2.ProgrammingError as ex:
except (psycopg2.ProgrammingError, BackendError) as ex:
self.Error.connection(str(ex))
return

Expand Down

0 comments on commit f88f2fd

Please sign in to comment.