Skip to content

Commit

Permalink
Merge a1acf22 into ca2fdab
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Oct 18, 2018
2 parents ca2fdab + a1acf22 commit aeeec14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pyscaffoldext/custom_extension/custom_extension.py
Expand Up @@ -14,7 +14,7 @@
EXTENSION_FILE_NAME = "extension"


class InvalidProjectNameException(BaseException):
class InvalidProjectNameException(RuntimeError):
"""Project name does not comply with convention of an extension"""

DEFAULT_MESSAGE = (
Expand Down Expand Up @@ -204,9 +204,7 @@ def check_project_name(struct, opts):
:return:
"""
if not opts['project'].startswith('pyscaffoldext-') and not opts['force']:
raise InvalidProjectNameException("An extension project name"
"should start with "
"'pyscaffoldext-")
raise InvalidProjectNameException

if opts["package"].startswith('pyscaffoldext_'):
opts["package"] = opts["package"].replace("pyscaffoldext_", "")
Expand Down

0 comments on commit aeeec14

Please sign in to comment.