Skip to content

Commit

Permalink
TST/FIX: no graphics object on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
klauer committed Jul 21, 2023
1 parent 3263010 commit 6bac5ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv



requirements:
build:
- python >=3.6
Expand All @@ -26,8 +24,6 @@ requirements:
- pyqt >=5
- qtpy



test:
imports:
- qtpynodeeditor
Expand All @@ -36,8 +32,6 @@ test:
- pytest-qt
- pytest-cov



about:
home: https://github.com/klauer/qtpynodeeditor
license: BSD 3-clause
Expand Down
5 changes: 5 additions & 0 deletions qtpynodeeditor/node_painter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def paint(painter: QPainter, node: 'Node', scene: 'FlowScene',
geom = node.geometry
state = node.state
graphics_object = node.graphics_object

if graphics_object is None:
# On CI, we might not have a graphics object
return

geom.recalculate_size(painter.font())

model = node.model
Expand Down

0 comments on commit 6bac5ca

Please sign in to comment.