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

UnboundLocalError: local variable 'itemStart' referenced before assignment #149

Closed
skliper opened this issue Jan 12, 2021 · 0 comments · Fixed by #188 or #192
Closed

UnboundLocalError: local variable 'itemStart' referenced before assignment #149

skliper opened this issue Jan 12, 2021 · 0 comments · Fixed by #188 or #192
Labels
bug Something isn't working

Comments

@skliper
Copy link
Contributor

skliper commented Jan 12, 2021

Describe the bug
The following error is reported occasionally when opening telemetry pages:

  File "/export/home/jhageman/cFS/cFS-GitHub/tools/cFS-GroundSystem/Subsystems/tlmGUI/GenericTelemetry.py", line 108, in processPendingDatagrams
    self.displayTelemetryItem(datagram, k, itemLabel, itemValue)
  File "/export/home/jhageman/cFS/cFS-GitHub/tools/cFS-GroundSystem/Subsystems/tlmGUI/GenericTelemetry.py", line 66, in displayTelemetryItem
    TlmField2 = datagram[itemStart:itemStart +
UnboundLocalError: local variable 'itemStart' referenced before assignment

To Reproduce
Start cFS-GroundSystem, "Start Telemetry System", and I triggered it by opening the "Display Page" for "TBL HK Tlm". Page closed after error was produced.

Expected behavior
Page should open and display telemetry.

Code snips
Haven't tracked down yet

System observed on:

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04
  • Versions: Bundle main

Additional context
None

Reporter Info
Jacob Hageman - NASA/GSFC

@skliper skliper added the bug Something isn't working label Jan 12, 2021
astrogeco added a commit that referenced this issue Jul 29, 2021
…-assignment

Fix #149, * might be referenced before assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant