Skip to content

Commit

Permalink
Modified .gitignore for adding lib/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bharadwajyarlagadda committed Aug 19, 2016
1 parent 2b297ae commit f1655ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
Expand Down
Empty file added korona/lib/__init__.py
Empty file.
10 changes: 10 additions & 0 deletions korona/lib/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from ..html.tags import TAGS


def validate_tag(tag=None):
"""Validates whether the given tag is supported by korona or not."""
if not tag:
raise AttributeError('Tag cannot be empty')

if tag not in TAGS:
raise ValueError('{0} tag is not supported')

0 comments on commit f1655ea

Please sign in to comment.