Spaces:
Runtime error
Runtime error
Ronio Jerico Roque commited on
Commit ·
5fbb54e
1
Parent(s): 4c176a1
fix: handle AttributeError when processing CSV files in SeoOnPageAnalyst
Browse files- classes/Seo_On_Page.py +4 -1
classes/Seo_On_Page.py
CHANGED
|
@@ -105,7 +105,10 @@ class SeoOnPageAnalyst:
|
|
| 105 |
if file_info['type'] == 'pdf':
|
| 106 |
combined_text += file_info['content'] + "\n"
|
| 107 |
elif file_info['type'] == 'csv':
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
| 109 |
except KeyError:
|
| 110 |
pass
|
| 111 |
try:
|
|
|
|
| 105 |
if file_info['type'] == 'pdf':
|
| 106 |
combined_text += file_info['content'] + "\n"
|
| 107 |
elif file_info['type'] == 'csv':
|
| 108 |
+
try:
|
| 109 |
+
combined_text += "CrawlFile CSV: {"+ file_info['content'].to_csv(index=True) + "\n"
|
| 110 |
+
except AttributeError:
|
| 111 |
+
pass
|
| 112 |
except KeyError:
|
| 113 |
pass
|
| 114 |
try:
|