You need to sign in or sign up before continuing.
Commit 808fd81c by yamagen0915

Add a friendly warning message

parent 6140a803
...@@ -163,6 +163,10 @@ class Package(object): ...@@ -163,6 +163,10 @@ class Package(object):
m = AUTHOR_REGEX.match(self._authors[0]) m = AUTHOR_REGEX.match(self._authors[0])
if m is None: if m is None:
logger.warning(
"Invalid author string. Must be in the format: "
"John Smith <john@example.com>"
)
return {"name": None, "email": None} return {"name": None, "email": None}
name = m.group("name") name = m.group("name")
...@@ -177,6 +181,10 @@ class Package(object): ...@@ -177,6 +181,10 @@ class Package(object):
m = AUTHOR_REGEX.match(self._maintainers[0]) m = AUTHOR_REGEX.match(self._maintainers[0])
if m is None: if m is None:
logger.warning(
"Invalid maintainer string. Must be in the format: "
"John Smith <john@example.com>"
)
return {"name": None, "email": None} return {"name": None, "email": None}
name = m.group("name") name = m.group("name")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment