diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-08-20 15:42:38 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-10-15 19:32:59 +0200 |
commit | 7efe436fd9b794ed585a675bf0cbaf9ff4c8464d (patch) | |
tree | 7ead31f9d396e4202593e43c56e197ff2e84cfdd /ishtar_common/utils.py | |
parent | 22089564f871cb265646e878291fecd423edf188 (diff) | |
download | Ishtar-7efe436fd9b794ed585a675bf0cbaf9ff4c8464d.tar.bz2 Ishtar-7efe436fd9b794ed585a675bf0cbaf9ff4c8464d.zip |
🐛 fix unclosed file
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index c503c42b9..52bcd3ddb 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -2249,7 +2249,8 @@ def generate_relation_graph( png_name = tempdir + os.path.sep + "relations.png" with open(png_name, "wb") as png_file: - svg2png(open(svg_tmp_name, "rb").read(), write_to=png_file) + with open(svg_tmp_name, "rb") as svg_tmp: + svg2png(svg_tmp.read(), write_to=png_file) with open(png_name, "rb") as png_file: django_file = File(png_file) attr = "relation_bitmap_image" + suffix |