Skip to content

Commit

Permalink
Fix check failures (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbruckner authored Mar 13, 2019
1 parent 725e84f commit 35db00c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ disable=
too-many-statements,
too-many-lines,
too-few-public-methods,
abstract-method
abstract-method,
useless-object-inheritance

[EXCEPTIONS]
overgeneral-exceptions=Exception
2 changes: 1 addition & 1 deletion src/amcrest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# GNU General Public License for more details.
#
# vim:sw=4:ts=4:et
from .exceptions import AmcrestError, CommError, LoginError
from .exceptions import AmcrestError, CommError, LoginError # noqa: F401
from .http import Http


Expand Down
2 changes: 2 additions & 0 deletions src/amcrest/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
This module contains the set of amcrest's exceptions.
"""


class AmcrestError(Exception):
"""General Amcrest error occurred."""

Expand Down
4 changes: 2 additions & 2 deletions src/amcrest/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def __init__(self, host, port, user,
self._protocol = protocol
self._base_url = self.__base_url()

self._retries_default = (retries_connection or
MAX_RETRY_HTTP_CONNECTION)
self._retries_default = (
retries_connection or MAX_RETRY_HTTP_CONNECTION)
self._timeout_default = timeout_protocol or TIMEOUT_HTTP_PROTOCOL

self._token = self._generate_token()
Expand Down
7 changes: 2 additions & 5 deletions tui/amcrest-tui
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,8 @@ if __name__ == "__main__":
args = parser.parse_args()

# Check if we have permission to framebuffer device
try:
with open(args.framebuffer_device, 'r') as f:
pass
except Exception:
raise
with open(args.framebuffer_device, 'r') as f:
pass

# pylint: disable=fixme
# FIXME: Add option to save the snapshots in the disk
Expand Down

0 comments on commit 35db00c

Please sign in to comment.