Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/groovy-devel' into groovy-devel
Browse files Browse the repository at this point in the history
* upstream/groovy-devel:
  added check to ensure we do not fail if PyQt5 is not in sys.modules
  • Loading branch information
Michael Jae-Yoon Chung committed Dec 10, 2014
2 parents 75d13ef + df1dfd3 commit 4cf4430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

# HACK workaround for upstream pillow issue python-pillow/Pillow#400
import sys
if sys.modules['PyQt5']:
if 'PyQt5' in sys.modules:
sys.modules['PyQt5'] = None
from PIL import Image
from PIL.ImageQt import ImageQt
Expand Down
2 changes: 1 addition & 1 deletion rqt_bag_plugins/src/rqt_bag_plugins/image_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

# HACK workaround for upstream pillow issue python-pillow/Pillow#400
import sys
if sys.modules['PyQt5']:
if 'PyQt5' in sys.modules:
sys.modules['PyQt5'] = None
from PIL.ImageQt import ImageQt

Expand Down

0 comments on commit 4cf4430

Please sign in to comment.