Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
149b18c4
Commit
149b18c4
authored
Feb 05, 2018
by
Paul McCarthy
🚵
Browse files
Platform was eating wx import errors - now logs a warning if wx import fails
parent
08df89d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/platform.py
View file @
149b18c4
...
@@ -158,6 +158,7 @@ class Platform(notifier.Notifier):
...
@@ -158,6 +158,7 @@ class Platform(notifier.Notifier):
import
wx
import
wx
self
.
__canHaveGui
=
wx
.
App
.
IsDisplayAvailable
()
self
.
__canHaveGui
=
wx
.
App
.
IsDisplayAvailable
()
except
ImportError
:
except
ImportError
:
log
.
warning
(
'Could not import wx'
,
exc_info
=
True
)
self
.
__canHaveGui
=
False
self
.
__canHaveGui
=
False
# If one of the SSH_/VNC environment
# If one of the SSH_/VNC environment
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment