Spaces:
Build error
Build error
Ronio Jerico Roque commited on
Commit ·
80ae375
1
Parent(s): 8e754cf
Remove commented error messages for invalid file formats in Seo and SeoOffPage classes
Browse files- classes/Off_Page.py +2 -1
- classes/Seo.py +3 -1
classes/Off_Page.py
CHANGED
|
@@ -101,7 +101,8 @@ class SeoOffPageAnalyst:
|
|
| 101 |
|
| 102 |
#st.info("Website Audience Acquisition Uploaded Successfully", icon="ℹ️")
|
| 103 |
except KeyError:
|
| 104 |
-
|
|
|
|
| 105 |
except Exception as e:
|
| 106 |
st.error(f"Error processing data: {str(e)}")
|
| 107 |
|
|
|
|
| 101 |
|
| 102 |
#st.info("Website Audience Acquisition Uploaded Successfully", icon="ℹ️")
|
| 103 |
except KeyError:
|
| 104 |
+
pass
|
| 105 |
+
#st.info(f"Incorrect format for {file_name}. Please upload a valid CSV file.")
|
| 106 |
except Exception as e:
|
| 107 |
st.error(f"Error processing data: {str(e)}")
|
| 108 |
|
classes/Seo.py
CHANGED
|
@@ -192,11 +192,13 @@ class Seo:
|
|
| 192 |
traffic_aqcuisition += f"Traffics: {traffics}"
|
| 193 |
traffic_aqcuisition += f"\nPaid Traffic: {ga4_paid_social}\nOrganic Traffic: {ga4_organic_traffic}\nDirect Traffic: {ga4_direct_traffic}\nReferral Traffic: {ga4_referral_traffic}"
|
| 194 |
except KeyError:
|
|
|
|
| 195 |
if self.others:
|
| 196 |
pass
|
| 197 |
else:
|
| 198 |
# This would be triggered if df_traffic exists but the other keys are missing
|
| 199 |
-
st.info("Incorrect Traffic Acquisition GA4 format. Please upload a valid GA4 file.")
|
|
|
|
| 200 |
except TypeError:
|
| 201 |
st.info("Incorrect Traffic Acquisition GA4 format. Please upload a valid GA4 file.")
|
| 202 |
|
|
|
|
| 192 |
traffic_aqcuisition += f"Traffics: {traffics}"
|
| 193 |
traffic_aqcuisition += f"\nPaid Traffic: {ga4_paid_social}\nOrganic Traffic: {ga4_organic_traffic}\nDirect Traffic: {ga4_direct_traffic}\nReferral Traffic: {ga4_referral_traffic}"
|
| 194 |
except KeyError:
|
| 195 |
+
|
| 196 |
if self.others:
|
| 197 |
pass
|
| 198 |
else:
|
| 199 |
# This would be triggered if df_traffic exists but the other keys are missing
|
| 200 |
+
#st.info("Incorrect Traffic Acquisition GA4 format. Please upload a valid GA4 file.")
|
| 201 |
+
pass
|
| 202 |
except TypeError:
|
| 203 |
st.info("Incorrect Traffic Acquisition GA4 format. Please upload a valid GA4 file.")
|
| 204 |
|