Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
erp5
Commits
4ed4cc68
Commit
4ed4cc68
authored
May 15, 2024
by
Carlos Ramos Carreño
Browse files
Options
Browse Files
Download
Plain Diff
Fixes the error in `test_onErrorCallback`.
See merge request
nexedi/erp5!1935
parents
c497f144
94a22885
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
product/CMFActivity/Activity/SQLBase.py
product/CMFActivity/Activity/SQLBase.py
+4
-3
No files found.
product/CMFActivity/Activity/SQLBase.py
View file @
4ed4cc68
...
...
@@ -83,7 +83,8 @@ def sort_message_key(message):
# same sort key as in SQLBase.getMessageList
return
message
.
line
.
priority
,
message
.
line
.
date
,
message
.
uid
_DequeueMessageException
=
Exception
()
class
_DequeueMessageException
(
Exception
):
pass
_ITEMGETTER0
=
operator
.
itemgetter
(
0
)
_IDENTITY
=
lambda
x
:
x
...
...
@@ -1009,11 +1010,11 @@ CREATE TABLE %s (
# increased.
for
m
in
message_list
:
if
m
.
getExecutionState
()
==
MESSAGE_NOT_EXECUTED
:
raise
_DequeueMessageException
raise
_DequeueMessageException
()
transaction
.
commit
()
except
:
exc_info
=
sys
.
exc_info
()
if
exc_info
[
1
]
is
not
_DequeueMessageException
:
if
not
isinstance
(
exc_info
[
1
],
_DequeueMessageException
)
:
self
.
_log
(
WARNING
,
'Exception raised when invoking messages (uid, path, method_id) %r'
%
[(
m
.
uid
,
m
.
object_path
,
m
.
method_id
)
for
m
in
message_list
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment