mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-23 17:17:37 +00:00
Make sure we don't try to read when opening a file in binary more. Fixes #1301.
This commit is contained in:
@ -118,7 +118,7 @@ class Drawing:
|
||||
|
||||
file_path = os.path.join(self._project.pictures_directory, filename)
|
||||
if not os.path.exists(file_path):
|
||||
with open(file_path, "wb+") as f:
|
||||
with open(file_path, "wb") as f:
|
||||
f.write(data)
|
||||
value = filename
|
||||
|
||||
|
Reference in New Issue
Block a user