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:
@@ -17,4 +17,3 @@ try:
|
||||
from puppetboard.app import app as application
|
||||
except Exception, inst:
|
||||
logging.exception("Error: %s", str(type(inst)))
|
||||
|
||||
|
||||
@@ -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'),
|
||||
])
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user