Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UnboundLocalError in Log class #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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