Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F16568754
D3343.id9553.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3343.id9553.diff
View Options
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -1356,15 +1356,18 @@
if record.recipient == recipient:
recipient_found = True
if not recipient_found:
- cache_insert(
- function=function,
- sender=sender,
- recipient=recipient,
- result=result,
- sasl_username=sasl_username,
- sasl_sender=sasl_sender,
- data=data
- )
+ try:
+ cache_insert(
+ function=function,
+ sender=sender,
+ recipient=recipient,
+ result=result,
+ sasl_username=sasl_username,
+ sasl_sender=sasl_sender,
+ data=data
+ )
+ except Exception as errmsg:
+ log.error(_("Exception caught: %r") % (errmsg))
def defer_if_permit(message, policy_request=None):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 31, 7:55 AM (1 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10074579
Default Alt Text
D3343.id9553.diff (1 KB)
Attached To
Mode
D3343: Catch exceptions in `cache_update()`
Attached
Detach File
Event Timeline
Log In to Comment