@danhachuel/thunderbolt 0.4.98 → 0.4.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/influencers_ui.py +9 -9
- package/app/main.py +191 -191
- package/hermes_ui/notifications.py +5 -1
- package/package.json +1 -1
|
@@ -120,7 +120,11 @@ def _safe_metadata(value: Any, *, key: str = "") -> Any:
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
def _history() -> list[dict[str, Any]]:
|
|
123
|
-
|
|
123
|
+
try:
|
|
124
|
+
saved = storage.read_json(NOTIFICATIONS_FILE, [])
|
|
125
|
+
except PermissionError:
|
|
126
|
+
# Um lock ou ficheiro sem permissões não deve interromper a interface.
|
|
127
|
+
return []
|
|
124
128
|
if not isinstance(saved, list):
|
|
125
129
|
return []
|
|
126
130
|
return [item for item in saved if isinstance(item, dict)]
|
package/package.json
CHANGED