Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
ptb-subtitle-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Hartig
ptb-subtitle-service
Merge requests
!11
Reformat
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Reformat
dev
into
main
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Reformat
Jan Hartig
requested to merge
dev
into
main
Sep 26, 2023
Overview
0
Commits
1
Pipelines
1
Changes
2
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
be58fc00
1 commit,
Sep 26, 2023
2 files
+
15
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
mailservice.py
+
6
−
2
View file @ be58fc00
Edit in single-file editor
Open in Web IDE
Show full file
@@ -45,7 +45,9 @@ def main(end):
local_hostname
=
None
s
=
smtplib
.
SMTP
(
host
=
config
[
"
MAIL
"
][
"
SERVER
"
],
port
=
config
[
"
MAIL
"
][
"
PORT
"
],
local_hostname
=
local_hostname
host
=
config
[
"
MAIL
"
][
"
SERVER
"
],
port
=
config
[
"
MAIL
"
][
"
PORT
"
],
local_hostname
=
local_hostname
,
)
sent
=
0
@@ -99,7 +101,9 @@ def main(end):
job_uuids
.
append
(
Path
(
job
).
name
)
msg
.
set_content
(
"
The following jobs currently have errors:
\n\n
- {}
"
.
format
(
"
\n
-
"
.
join
(
job_uuids
))
"
The following jobs currently have errors:
\n\n
- {}
"
.
format
(
"
\n
-
"
.
join
(
job_uuids
)
)
)
s
.
send_message
(
msg
)
Loading