summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-06-19 10:34:00 -0700
committerMartin Braun <martin.braun@ettus.com>2019-06-19 10:34:00 -0700
commitf9447f11df7ff3fe01959fc42f86ce509b152ac0 (patch)
tree0e62e1aa2aa652bed00bdc32370ae2c264343cc9
parent0d9eda3b123884f3d5d0177908d0a30c1c9c18e9 (diff)
fixup! GRC: Fix for GRC crash in case of flowgraph error
-rw-r--r--grc/core/Messages.py4
-rw-r--r--grc/gui/MainWindow.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/grc/core/Messages.py b/grc/core/Messages.py
index 2a597d367c..6d67dc7d2e 100644
--- a/grc/core/Messages.py
+++ b/grc/core/Messages.py
@@ -26,8 +26,8 @@ MESSENGERS_LIST = list()
_indent = ''
# Global FlowGraph Error and the file that caused it
-global flowgraph_error
-global flowgraph_error_file
+flowgraph_error = None
+flowgraph_error_file = None
def register_messenger(messenger):
diff --git a/grc/gui/MainWindow.py b/grc/gui/MainWindow.py
index 7d0337856e..eac6cfc9f6 100644
--- a/grc/gui/MainWindow.py
+++ b/grc/gui/MainWindow.py
@@ -260,7 +260,7 @@ class MainWindow(Gtk.ApplicationWindow):
flow_graph=flow_graph,
file_path=file_path,
)
- if str(Messages.flowgraph_error) is not None:
+ if getattr(Messages, 'flowgraph_error') is not None:
Messages.send(
">>> Check: {}\n>>> FlowGraph Error: {}\n".format(
str(Messages.flowgraph_error_file),