Pep8 check most files

I left some errors on puppetboard/forms.py because I'm not
sure how to fix them.
This commit is contained in:
Spencer Krum
2013-10-29 11:51:51 -07:00
parent 7265dc2fd0
commit 49afb9ed34
5 changed files with 24 additions and 24 deletions

View File

@@ -17,4 +17,3 @@ try:
from puppetboard.app import app as application
except Exception, inst:
logging.exception("Error: %s", str(type(inst)))

View File

@@ -4,6 +4,7 @@ from __future__ import absolute_import
from flask.ext.wtf import Form
from wtforms import RadioField, TextAreaField, validators
class QueryForm(Form):
"""The form used to allow freeform queries to be executed against
PuppetDB."""
@@ -17,4 +18,3 @@ class QueryForm(Form):
('reports', 'Reports'),
('events', 'Events'),
])

View File

@@ -6,6 +6,7 @@ from pypuppetdb.errors import EmptyResponseError
from flask import abort
def get_or_abort(func, *args, **kwargs):
"""Execute the function with its arguments and handle the possible
errors that might occur.