Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine
Merge requests
!47
Refactor: add error handling for unknown channel type
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor: add error handling for unknown channel type
error-handling-channeltype
into
main
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Martina Müller
requested to merge
error-handling-channeltype
into
main
4 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
See
#146 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
32f96987
1 commit,
4 months ago
2 files
+
8
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/aura_engine/core/channels.py
+
7
−
2
Options
@@ -601,6 +601,8 @@ class ChannelFactory:
Returns:
(GenericChannel): A concrete implementation of the generic channel
Raises:
ValueError: If no matching channel type is found
"""
if
channel_name
in
ChannelType
.
QUEUE
.
channels
:
self
.
logger
.
debug
(
f
"
Create new QUEUE channel
'
{
channel_name
}
'"
)
@@ -611,8 +613,11 @@ class ChannelFactory:
if
channel_name
in
ChannelType
.
LIVE
.
channels
:
self
.
logger
.
debug
(
f
"
Create new LINE channel
'
{
channel_name
}
'"
)
return
LineChannel
(
channel_index
,
channel_name
,
mixer
)
# FIXME: Error handling when no ChannelType was found
self
.
logger
.
error
(
"
No ChannelType found! Now stuff is not working as intended
"
)
error_message
=
(
f
"
No valid ChannelType found for channel
'
{
channel_name
}
'
. Not working as intended.
"
)
self
.
logger
.
error
(
error_message
)
raise
ValueError
(
error_message
)
class
PlayoutStatusResponse
(
StrEnum
):
Loading