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(embedded): accessing variable response before initialization #20263

Merged
merged 1 commit into from Jun 6, 2022

Conversation

zhaorui2022
Copy link
Contributor

SUMMARY

if response.getcode() != 200:
At line 83, if auth_cookies is false, before returning an URLError, line 83 will fail with error message saying Failed generating csv local variable 'response' referenced before assignment. More details reported at #20262

ADDITIONAL INFORMATION

@zhaorui2022 zhaorui2022 changed the title fix(embedded): accessign variable response before initialization fix(embedded): accessing variable response before initialization Jun 3, 2022
@codecov
Copy link

codecov bot commented Jun 6, 2022

Codecov Report

Merging #20263 (306aca4) into master (2a1dcaf) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #20263   +/-   ##
=======================================
  Coverage   66.52%   66.52%           
=======================================
  Files        1726     1726           
  Lines       64886    64845   -41     
  Branches     6832     6832           
=======================================
- Hits        43168    43141   -27     
+ Misses      19986    19972   -14     
  Partials     1732     1732           
Flag Coverage Δ
hive 53.70% <0.00%> (+0.04%) ⬆️
mysql ?
postgres 82.35% <100.00%> (+0.06%) ⬆️
presto 53.56% <0.00%> (+0.04%) ⬆️
python 82.73% <100.00%> (+0.02%) ⬆️
sqlite 82.08% <100.00%> (+0.06%) ⬆️
unit 50.15% <0.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/utils/csv.py 97.91% <100.00%> (ø)
superset/common/utils/dataframe_utils.py 85.71% <0.00%> (-7.15%) ⬇️
superset/db_engine_specs/mysql.py 93.97% <0.00%> (-3.62%) ⬇️
superset/models/core.py 88.43% <0.00%> (-0.73%) ⬇️
superset/views/core.py 76.88% <0.00%> (-0.46%) ⬇️
superset/databases/schemas.py 98.58% <0.00%> (+<0.01%) ⬆️
superset/jinja_context.py 91.15% <0.00%> (+0.32%) ⬆️
superset/db_engine_specs/trino.py 91.93% <0.00%> (+20.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a1dcaf...306aca4. Read the comment docs.

@bkyryliuk bkyryliuk merged commit 2a45be3 into apache:master Jun 6, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants