Skip to content

Commit

Permalink
FIX: Control void
Browse files Browse the repository at this point in the history
  • Loading branch information
nestorip committed Sep 15, 2020
1 parent 80dda6b commit 7ae5743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dao/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ def get_layer_by_tablename(self, tablename, show_warning=False, log_info=False):
for cur_layer in layers:
uri_table = self.get_layer_source_table_name(cur_layer)
table_schema = self.get_layer_schema(cur_layer)
if (uri_table is not None and uri_table == tablename) and main_schema in (None, table_schema):
if (uri_table is not None and uri_table == tablename) and main_schema in ('', None, table_schema):
layer = cur_layer
break

Expand Down

0 comments on commit 7ae5743

Please sign in to comment.