kopia lustrzana https://gitlab.com/jaywink/federation
Delete the temp file after uploading
rodzic
e4db91503b
commit
2fe45a35f0
|
@ -144,6 +144,8 @@ class MatrixRoomMessage(Post, MatrixEntityMixin):
|
||||||
logger.warning("MatrixRoomMessage.pre_send | Failed to upload image %s: %s",
|
logger.warning("MatrixRoomMessage.pre_send | Failed to upload image %s: %s",
|
||||||
url, ex)
|
url, ex)
|
||||||
continue
|
continue
|
||||||
|
finally:
|
||||||
|
os.unlink(image_file)
|
||||||
# Replace in raw content
|
# Replace in raw content
|
||||||
try:
|
try:
|
||||||
logger.debug("MatrixRoomMessage.pre_send | Got response %s", response.json())
|
logger.debug("MatrixRoomMessage.pre_send | Got response %s", response.json())
|
||||||
|
|
Ładowanie…
Reference in New Issue