local variable 'type_overall_status' referenced before assignment
See original GitHub issueI’m using 0.9.0 but this seems to be an issue in the repo too. I’m just using this project for the first time, so I suspect I have something else wrong, but there’s a variable that’s assigned with in an if elif
which makes it possible to be undefined. The line that throws the exception is: https://github.com/mwarkentin/django-watchman/blob/master/watchman/views.py#L134
From the comments and a presentation I watched, it seems that the stacktrace should be a string, but the code seems to be checking for either a dict
or a list
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (16 by maintainers)
Top Results From Across the Web
Local (?) variable referenced before assignment [duplicate]
I am receiving the following error: UnboundLocalError: local variable 'test1' referenced before assignment. Error says that 'test1' is local variable but i ...
Read more >Python local variable referenced before assignment Solution
The UnboundLocalError: local variable referenced before assignment error is raised when you try to assign a value to a local variable before it ......
Read more >Local variable referenced before assignment in Python
The Python UnboundLocalError: Local variable referenced before assignment occurs when we reference a local variable before assigning a value to it in a ......
Read more >Local Variable Referenced Before Assignment - STechies
The “local variable referenced before assignment” error occurs when you give reference of a local variable without assigning any value. Example:
Read more >[SOLVED] Local Variable Referenced Before Assignment
Unboundlocalerror : local variable referenced before assignment is thrown if a variable is assigned before it's bound.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
well, if you’re interested in examples… here’s my finished checks for rabbitmq and celery:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.