Merge pull request #524 from camptocamp/azure_attachment-traceback

[17.0][IMP] attachment_azure: add stack_info on ResourceExistsError
This commit is contained in:
Florent Xicluna
2026-05-19 08:18:00 +02:00
committed by GitHub
co-authored by GitHub
+6 -2
View File
@@ -177,8 +177,12 @@ class IrAttachment(models.Model):
try:
blob_client.upload_blob(file, blob_type="BlockBlob")
except ResourceExistsError:
_logger.exception(
"Trying to re create an existing resource %s" % filename
(
_logger.exception(
"Trying to re create an existing resource %s",
filename,
stack_info=True,
),
)
except HttpResponseError as error:
# log verbose error from azure, return short message for user