Skip to content

Commit

Permalink
Fixing lint issues, branch based off master
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwanthbabu committed Sep 22, 2014
1 parent e0e891a commit 49656e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tavern/templatetags/tavern_unjoined_filters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django import template
from django.contrib.auth.models import User

from tavern.models import get_unjoined_groups

Expand Down Expand Up @@ -30,6 +29,5 @@ def get_user_tavern_unjoined_groups(parser, token):
if not (user in ('request.user', 'user')):
raise template.TemplateSyntaxError("%r variable is not the user" % token.contents.split()[2])
except ValueError:
raise template.TemplateSyntaxError("%r tag is invalid. use "
"get_user_tavern_unjoined_groups for request.user/user in user_tavern_unjoined_groups" % token.contents.split()[0])
raise template.TemplateSyntaxError("%r tag is invalid. use 'get_user_tavern_unjoined_groups for request.user/user in user_tavern_unjoined_groups'" % token.contents.split()[0])
return UserUnjoinedTavernGroup(user, var_name)

0 comments on commit 49656e6

Please sign in to comment.