Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Jan 31, 2014
1 parent 642fd78 commit 51e8995
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion bootstrap3/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals


class BootstrapException(Exception):
"""
Any exception from this package
"""
pass


class BootstrapError(BootstrapException):
"""
Any exception that is an error
"""
pass
4 changes: 2 additions & 2 deletions bootstrap3/templatetags/bootstrap3.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def bootstrap_css():
"""

url = bootstrap_css_url()
if url: # http://mothereff.in/unquoted-attributes
return '<link href="{url}" rel=stylesheet media=screen>'.format(url=url)
if url:
return '<link href="{url}" rel="stylesheet" media="screen">'.format(url=url)


@register.simple_tag
Expand Down

0 comments on commit 51e8995

Please sign in to comment.