From 11527babc7c85f5e8ef12214f60e25e87f165f9c Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 23 Jul 2015 16:12:03 -0300 Subject: [PATCH] Remove unnecessary code --- sapl/layout.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sapl/layout.py b/sapl/layout.py index 78b2c4afa..573e2d904 100644 --- a/sapl/layout.py +++ b/sapl/layout.py @@ -4,12 +4,8 @@ from django.utils.translation import ugettext as _ def to_column(name_span): - try: - fieldname, span = name_span - except: - return name_span - else: - return Column(fieldname, css_class='large-%d' % span) + fieldname, span = name_span + return Column(fieldname, css_class='large-%d' % span) def to_row(names_spans):