Commit 4838dfee696726d7ab6b517a829abd12c77338d7
1 parent
61d6ebfa
Exists in
master
and in
5 other branches
FIX: debug option working again.
The problem was the new wxpython version changed pubsub api.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
invesalius/invesalius.py
... | ... | @@ -216,7 +216,10 @@ def parse_comand_line(): |
216 | 216 | |
217 | 217 | # If debug argument... |
218 | 218 | if options.debug: |
219 | - ps.Publisher().subscribe(print_events, ps.ALL_TOPICS) | |
219 | + try: | |
220 | + ps.Publisher().subscribe(print_events, ps.ALL_TOPICS) | |
221 | + except AttributeError: | |
222 | + ps.Publisher().subscribe(print_events, ps.pub.getStrAllTopics()) | |
220 | 223 | session.debug = 1 |
221 | 224 | |
222 | 225 | # If import DICOM argument... | ... | ... |