Skip to content

Fix UnboundLocalError in Log class#10

Open
keeferrourke wants to merge 1 commit intoFedericoCeratto:mainfrom
keeferrourke:master
Open

Fix UnboundLocalError in Log class#10
keeferrourke wants to merge 1 commit intoFedericoCeratto:mainfrom
keeferrourke:master

Conversation

@keeferrourke
Copy link

I came across the following error while building a dashing dashboard (paths truncated in traceback for brevity):

  File "venv/lib/python3.9/site-packages/dashing/dashing.py", line 100, in display
    self._display(tbox, None)
  File "venv/lib/python3.9/site-packages/dashing/dashing.py", line 144, in _display
    i._display(TBox(tbox.t, x, y, item_width, item_height), self)
  File "venv/lib/python3.9/site-packages/dashing/dashing.py", line 144, in _display
    i._display(TBox(tbox.t, x, y, item_width, item_height), self)
  File "venv/lib/python3.9/site-packages/dashing/dashing.py", line 144, in _display
    i._display(TBox(tbox.t, x, y, item_width, item_height), self)
  File "venv/lib/python3.9/site-packages/dashing/dashing.py", line 205, in _display
    if i < tbox.h:
UnboundLocalError: local variable 'i' referenced before assignment

This patch is a quick fix for this particular error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant