Skip to content

Commit

Permalink
fix(embedded): Referecing local variable response before initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Zhao committed Jun 3, 2022
1 parent 2a1dcaf commit 306aca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/utils/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def get_chart_csv_data(
opener.addheaders.append(("Cookie", cookie_str))
response = opener.open(chart_url)
content = response.read()
if response.getcode() != 200:
raise URLError(response.getcode())
if response.getcode() != 200:
raise URLError(response.getcode())
if content:
return content
return None
Expand Down

0 comments on commit 306aca4

Please sign in to comment.