We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent babdd22 commit 3185ee0Copy full SHA for 3185ee0
1 file changed
css-reports/report.py
@@ -68,7 +68,10 @@ async def get_msl_context(
68
69
for field in data_response.find_all(name="input"):
70
if isinstance(field, bs4.Tag):
71
- if field.get("name") and field.get("value"):
+ if field.get("type") in ["submit", "image", "button"]:
72
+ continue
73
+
74
+ if field.get("name") and field.get("value") is not None:
75
data_fields[str(field.get("name"))] = str(field.get("value"))
76
77
for cookie in field_data.cookies:
@@ -131,6 +134,7 @@ async def fetch_report_url_and_cookies(
131
134
)
132
135
if not report_viewer_div or report_viewer_div.text.strip() == "":
133
136
print("Failed to load the reports.")
137
+ print(soup)
138
print(report_viewer_div)
139
raise ValueError("Failed to load the reports.")
140
0 commit comments