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
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
Merged
Reformat
dev
into
main
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Jan Hartig
requested to merge
dev
into
main
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
be58fc00
1 commit,
1 year ago
2 files
+
15
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
mailservice.py
+
6
−
2
Options
@@ -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