Skip to content
Snippets Groups Projects
Commit f3449773 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: flake8 and pylint

parent 75318994
No related branches found
No related tags found
2 merge requests!232.6.0 ✨ Redner server an use an unix socket too so also handle it,!18✨ Redner server an use an unix socket too so also handle it
......@@ -63,8 +63,8 @@
@route()
def report_download(self, data, token):
"""This function is used by 'redneractionmanager.js' in order to trigger
the download of a redner/controller report.
"""This function is used by 'redneractionmanager.js' in order to
trigger the download of a redner/controller report.
:param data: a javascript array JSON.stringified containg report
internal url ([0]) and type [1]
:returns: Response with a filetoken cookie and an attachment header
......
......@@ -150,5 +150,5 @@
for temporary_file in temporary_files:
try:
os.unlink(temporary_file)
except (OSError, IOError):
except OSError:
logger.error(
......@@ -154,5 +154,5 @@
logger.error(
"Error when trying to remove file %s" % temporary_file
"Error when trying to remove file %s", temporary_file
)
def create_report(self, res_ids, data):
......
......@@ -80,8 +80,8 @@
}
def get_format(self, name):
"""an accessor that will return a redner.formats.Format instance that can
be used to know the LibreOffice filter name, the mimetype etc.
"""an accessor that will return a redner.formats.Format instance that
can be used to know the LibreOffice filter name, the mimetype etc.
:param name: the name of the LibreOffice filter (ie: format) you want
to obtain
:type name: string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment