Fix PEP8 H201 warnings

Change-Id: Ifdff3317f9d1a06140d33db34db237513945d062
Fixes: bug #1212624
This commit is contained in:
Imre Farkas
2013-08-15 12:57:30 +02:00
parent 631e4b41e0
commit 8cbf0e3dd8
15 changed files with 42 additions and 42 deletions

View File

@@ -604,7 +604,7 @@ class Cell(html.HTMLElement):
data = self.column.empty_value(self.datum)
else:
data = self.column.empty_value
except:
except Exception:
data = None
exc_info = sys.exc_info()
raise template.TemplateSyntaxError, exc_info[1], exc_info[2]
@@ -1253,7 +1253,7 @@ class DataTable(object):
datum = new_row.get_data(request, obj_id)
new_row.load_cells(datum)
error = False
except:
except Exception:
datum = None
error = exceptions.handle(request, ignore=True)
if request.is_ajax():
@@ -1387,7 +1387,7 @@ class DataTable(object):
self.selected = True
row.classes.append('current_selected')
rows.append(row)
except:
except Exception:
# Exceptions can be swallowed at the template level here,
# re-raising as a TemplateSyntaxError makes them visible.
LOG.exception("Error while rendering table rows.")