[stickynotes-antispam] Delete pastes which cause a segmentation fault
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [stickynotes-antispam] Delete pastes which cause a segmentation fault
- Date: Fri, 16 Aug 2019 12:44:11 +0000 (UTC)
commit 178e8cceeca7daa26e4b291343fa85be842ffc9f
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Fri Aug 16 14:43:59 2019 +0200
Delete pastes which cause a segmentation fault
stickynotes-antispam.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/stickynotes-antispam.py b/stickynotes-antispam.py
index be7efd0..86360b7 100755
--- a/stickynotes-antispam.py
+++ b/stickynotes-antispam.py
@@ -103,8 +103,10 @@ def main():
try:
paste = client.get(paste_id)
except:
- print(f"=> error processing {paste_id}")
+ print(f"=> error processing {paste_id}, deleting")
+ client.delete(paste_id)
continue
+
if check_if_spam(paste):
client.delete(paste_id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]