Skip to content

Commit

Permalink
resolve items flagged by lgtm scan
Browse files Browse the repository at this point in the history
  • Loading branch information
samcmill committed Jan 27, 2020
1 parent 1af3f11 commit 26ba9c6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/data/remote_shell_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace wassail {
channel.sendEof();
channel.close();
}
catch (ssh::SshException e) {
catch (ssh::SshException &e) {
node.shell.stderr.append(e.getError());
}

Expand Down
3 changes: 1 addition & 2 deletions src/samples/python/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
from __future__ import print_function

import json
import logging
import sys

try:
import wassail
except:
except ModuleNotFoundError:
# If the wassail module is installed in a non-default location,
# you may need to set the PYTHONPATH environment variable to that
# location. Also use the same python version the module was built
Expand Down
2 changes: 1 addition & 1 deletion src/samples/python/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

try:
import wassail
except:
except ModuleNotFoundError:
# If the wassail module is installed in a non-default location,
# you may need to set the PYTHONPATH environment variable to that
# location. Also use the same python version the module was built
Expand Down
4 changes: 1 addition & 3 deletions src/samples/python/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@

import argparse
import json
import logging
import sys

try:
import wassail
except:
except ModuleNotFoundError:
# If the wassail module is installed in a non-default location,
# you may need to set the PYTHONPATH environment variable to that
# location. Also use the same python version the module was built
Expand Down
2 changes: 1 addition & 1 deletion src/samples/python/rest_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

try:
import wassail
except:
except ModuleNotFoundError:
# If the wassail module is installed in a non-default location,
# you may need to set the PYTHONPATH environment variable to that
# location. Also use the same python version the module was built
Expand Down
6 changes: 1 addition & 5 deletions src/samples/python/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@

from __future__ import print_function

import json
import logging
import sys

try:
import wassail
except:
except ModuleNotFoundError:
# If the wassail module is installed in a non-default location,
# you may need to set the PYTHONPATH environment variable to that
# location. Also use the same python version the module was built
Expand Down

0 comments on commit 26ba9c6

Please sign in to comment.