Skip to content

Commit

Permalink
Fix issue that happens before the site is upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Nov 2, 2023
1 parent 4f3d934 commit 8f04d13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion collective/auditlog/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ def getUID(context):
return uid

if hasattr(context, "UID"):
return context.UID()
try:
return context.UID()
except TypeError:
# Happens when running Plone 6 code before running
# the migration steps from Plone 5 to Plone6
pass

try:
return "/".join(context.getPhysicalPath())
Expand Down

0 comments on commit 8f04d13

Please sign in to comment.