From 4838dfee696726d7ab6b517a829abd12c77338d7 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Thu, 2 Dec 2010 11:24:31 +0000 Subject: [PATCH] FIX: debug option working again. --- invesalius/invesalius.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/invesalius/invesalius.py b/invesalius/invesalius.py index 5ac4e8e..9ac3e8e 100755 --- a/invesalius/invesalius.py +++ b/invesalius/invesalius.py @@ -216,7 +216,10 @@ def parse_comand_line(): # If debug argument... if options.debug: - ps.Publisher().subscribe(print_events, ps.ALL_TOPICS) + try: + ps.Publisher().subscribe(print_events, ps.ALL_TOPICS) + except AttributeError: + ps.Publisher().subscribe(print_events, ps.pub.getStrAllTopics()) session.debug = 1 # If import DICOM argument... -- libgit2 0.21.2