This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new 6dcdb6e47 upgrade pypeline to latest
6dcdb6e47 is described below

commit 6dcdb6e47de7efb14da088d6e0c13ba0763811a5
Author: Dave Brondsema <[email protected]>
AuthorDate: Mon Nov 25 18:18:33 2024 -0500

    upgrade pypeline to latest
---
 Allura/allura/lib/utils.py | 11 ++++++++---
 requirements.txt           |  2 +-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/Allura/allura/lib/utils.py b/Allura/allura/lib/utils.py
index d3b27fd6b..41140cfe9 100644
--- a/Allura/allura/lib/utils.py
+++ b/Allura/allura/lib/utils.py
@@ -151,9 +151,14 @@ class 
CustomWatchedFileHandler(logging.handlers.WatchedFileHandler):
         context of a taskd process that is currently processing a task.
 
         """
-        title = getproctitle()
-        if title.startswith('taskd:'):
-            record.name = f"{title}:{record.name}"
+        try:
+            title = getproctitle()
+        except SystemError:
+            # can happen when logging happens during process shutdown
+            pass
+        else:
+            if title.startswith('taskd:'):
+                record.name = f"{title}:{record.name}"
         return super().format(record)
 
 
diff --git a/requirements.txt b/requirements.txt
index b6756e822..07bcfadfc 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -200,7 +200,7 @@ pymongo-auth-aws==1.3.0
     # via pymongo
 pymongocrypt==1.11.0
     # via pymongo
-pypeline[creole,markdown,rst,textile]==0.6.1
+pypeline[creole,markdown,rst,textile]==0.7.0
     # via -r requirements.in
 pysolr==3.10.0
     # via -r requirements.in

Reply via email to