Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
a510cf6d
Verified
Commit
a510cf6d
authored
Apr 03, 2020
by
Baptiste Beauplat
Browse files
Prevent the importer of sending email with empty email address
parent
0df14c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/importer/importer.py
View file @
a510cf6d
...
@@ -264,7 +264,7 @@ class Importer(object):
...
@@ -264,7 +264,7 @@ class Importer(object):
self
.
_remove_files
()
self
.
_remove_files
()
if
self
.
user
is
not
None
:
if
self
.
user
is
not
None
and
self
.
user
.
email
:
email
=
Email
(
'importer_fail_maintainer'
)
email
=
Email
(
'importer_fail_maintainer'
)
package
=
self
.
changes
.
get
(
'Source'
,
''
)
package
=
self
.
changes
.
get
(
'Source'
,
''
)
...
@@ -287,7 +287,7 @@ class Importer(object):
...
@@ -287,7 +287,7 @@ class Importer(object):
self
.
_remove_files
()
self
.
_remove_files
()
if
self
.
user
is
not
None
:
if
self
.
user
is
not
None
and
self
.
user
.
email
:
email
=
Email
(
'importer_reject_maintainer'
)
email
=
Email
(
'importer_reject_maintainer'
)
package
=
self
.
changes
.
get
(
'Source'
,
''
)
package
=
self
.
changes
.
get
(
'Source'
,
''
)
...
...
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