Commit f848efc9 authored by Matthieu Lamalle's avatar Matthieu Lamalle

Format exception message when apparing without configuration

parent 1e797bef
Pipeline #394 passed with stage
in 0 seconds
......@@ -335,9 +335,14 @@ class ServerRunner(ZephirCommonController):
@register_wamp('v1.config.configuration.server.updated', None, database=True)
async def update_configuration(self, cursor, server_id):
configuration = await self.call('v1.config.configuration.server.get', server_id=server_id)
try:
configuration = await self.call('v1.config.configuration.server.get', server_id=server_id)
except:
print(f'No configuration available for server {server_id}')
return
self.server.update_configuration(cursor, server_id, configuration['configuration'])
@register_wamp('v1.server.peer-connection.update', notification_uri=None, database=True)
async def update_peerconnection(self, cursor, serverid):
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment