Skip to content

Commit dde8ece

Browse files
author
Arthur Wang
committed
Flake8 fixes
1 parent a3846bf commit dde8ece

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

datadog/api/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def request(cls, method, path, body=None, attach_host_name=False, response_forma
129129
error_msg = json.loads(e.response.text).get('errors')
130130
if error_msg:
131131
raise requests.exceptions.HTTPError("{0} ({1})".format(
132-
e.message, error_msg[0]))
132+
e.message, error_msg[0]))
133133
except json.JSONDecodeError:
134134
pass
135135
raise

datadog/dogshell/monitor.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ def setup_parser(cls, subparsers):
4646
delete_parser.add_argument('monitor_id', help="monitor to delete")
4747
delete_parser.set_defaults(func=cls._delete)
4848

49-
mute_all_parser = verb_parsers.add_parser('mute_all', help="Globally mute monitors (downtime over *)")
49+
mute_all_parser = verb_parsers.add_parser('mute_all', help="Globally mute "
50+
"monitors (downtime over *)")
5051
mute_all_parser.set_defaults(func=cls._mute_all)
5152

52-
unmute_all_parser = verb_parsers.add_parser('unmute_all', help="Globally unmute monitors (cancel downtime over *)")
53+
unmute_all_parser = verb_parsers.add_parser('unmute_all', help="Globally unmute "
54+
"monitors (cancel downtime over *)")
5355
unmute_all_parser.set_defaults(func=cls._unmute_all)
5456

5557
mute_parser = verb_parsers.add_parser('mute', help="Mute a monitor")
@@ -196,8 +198,7 @@ def _mute(cls, args):
196198
@classmethod
197199
def _unmute(cls, args):
198200
api._timeout = args.timeout
199-
res = api.Monitor.unmute(args.monitor_id, scope=args.scope,
200-
all_scopes=args.all_scopes)
201+
res = api.Monitor.unmute(args.monitor_id, scope=args.scope, all_scopes=args.all_scopes)
201202
report_warnings(res)
202203
report_errors(res)
203204
if format == 'pretty':

tests/integration/api/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def test_host_muting(self):
743743
eq(mute['action'], "Muted")
744744
eq(mute['end'], end2)
745745

746-
unmute = dog.Host.unmute(hostname)
746+
dog.Host.unmute(hostname)
747747

748748
if __name__ == '__main__':
749749
unittest.main()

0 commit comments

Comments
 (0)