Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
MPAI-Private
MPAI-CAE
arp
Audio Analyzer
Commits
2273871b
Commit
2273871b
authored
Apr 13, 2023
by
Matteo
Browse files
update
parent
dbb29744
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.py
View file @
2273871b
...
@@ -93,12 +93,12 @@ class AudioAnalyserServicer(arp_pb2_grpc.AIMServicer):
...
@@ -93,12 +93,12 @@ class AudioAnalyserServicer(arp_pb2_grpc.AIMServicer):
if
index
==
1
:
if
index
==
1
:
response
,
_
=
try_or_error_response
(
response
,
_
=
try_or_error_response
(
context
,
context
=
context
,
func
=
os
.
makedirs
,
func
=
os
.
makedirs
,
args
=
[
temp_dir
],
on_success_message
=
"Folders created successfully"
,
on_success_message
=
"Folders created successfully"
,
on_error_message
=
"Unable to create temporary directory, output path already exists"
,
on_error_message
=
"Unable to create temporary directory, output path already exists"
,
on_error_status
=
StatusCode
.
ALREADY_EXISTS
,
on_error_status
=
StatusCode
.
ALREADY_EXISTS
,
args
=
temp_dir
)
)
yield
response
yield
response
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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