Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
EOLE
Zéphir
Services
Server Manager
Commits
f848efc9
Commit
f848efc9
authored
Apr 01, 2019
by
Matthieu Lamalle
Browse files
Format exception message when apparing without configuration
parent
1e797bef
Pipeline
#394
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/controller
View file @
f848efc9
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment