mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
1 file changed
+4
-1
@@ -114,7 +114,10 @@ class ServerHandler:
|
||||
def write_settings(request, response):
|
||||
controller = Controller.instance()
|
||||
controller.settings = request.json
|
||||
controller.save()
|
||||
try:
|
||||
controller.save()
|
||||
except (OSError, PermissionError) as e:
|
||||
raise HTTPConflict(text="Can't save the settings {}".format(str(e)))
|
||||
response.json(controller.settings)
|
||||
response.set_status(201)
|
||||
|
||||
|
||||
Reference in new issue
Block a user