Skip to content

Commit

Permalink
Fixed bug that was caused by an even handler being called at an inapp…
Browse files Browse the repository at this point in the history
…ropriate time
  • Loading branch information
jkarns275 committed Jun 12, 2018
1 parent 36ab3f3 commit 3d450ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widgets/graphing_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ def __on_data_name_chagned(self, new_table):
def callback(work_result):
self.remove_worker_by_jid(work_result.job_id)
result = work_result.result
if result == None:
return
if 'parameters' not in result:
self.set_graph_buttons_enabled(True)
return
Expand Down
2 changes: 2 additions & 0 deletions src/worker/work_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def table_meta_data(table_name: str):
"""
*Initilizes meta data file.*
"""
if table_name == None or table_name == '':
return None
table = LOCAL_TABLE_CACHE[table_name]['data']
header = LOCAL_TABLE_CACHE[table_name]['header']
parameters = list(table.keys())
Expand Down

0 comments on commit 3d450ba

Please sign in to comment.