Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aura-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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Lars Kruse
aura-engine
Commits
e0556516
Commit
e0556516
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Fix and verbose exception handling.
parent
76838c64
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/scheduling/calendar.py
+2
-3
2 additions, 3 deletions
modules/scheduling/calendar.py
with
2 additions
and
3 deletions
modules/scheduling/calendar.py
+
2
−
3
View file @
e0556516
...
...
@@ -154,7 +154,7 @@ class AuraCalendarService(threading.Thread):
self
.
queue
.
put
(
result
)
except
Exception
as
e
:
# Release the mutex
self
.
logger
.
warning
(
"
Fetching aborted due to: %s
"
%
str
(
e
))
self
.
logger
.
warning
(
"
Fetching aborted due to: %s
"
%
str
(
e
)
,
e
)
self
.
queue
.
put
(
"
fetching_aborted
"
+
str
(
e
))
# terminate the thread
...
...
@@ -255,10 +255,9 @@ class AuraCalendarService(threading.Thread):
entry_db
.
artificial_playlist_id
=
playlist_db
.
artificial_id
entry_db
.
entry_num
=
entry_num
if
"
file
"
in
entry
and
duration
in
entry
[
"
file
"
]:
if
"
file
"
in
entry
and
"
duration
"
in
entry
[
"
file
"
]:
# Convert nano-seconds to seconds
duration
=
int
(
float
(
entry
[
"
file
"
][
"
duration
"
])
/
1000000000
)
# except Exception:
else
:
# No duration means it's playing until the end of the schedule
self
.
logger
.
debug
(
"
Missing duration - setting duration of entry to end-of-schedule
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment