Commits

Josh VanderLinden  committed 4b0fa8d

#21 - Removed the 'as' keyword to make template tags happier with Python < 2.6

  • Participants
  • Parent commits fa663a7

Comments (0)

Files changed (1)

File articles/templatetags/article_tags.py

         try:
             # determine what view we are using based upon the path of this page
             view, args, kwargs = resolve(context['request'].path)
-        except (Resolver404, KeyError) as err:
+        except (Resolver404, KeyError):
             raise ValueError('Invalid pagination page.')
         else:
             # set the page parameter for this view