Skip to content

Commit af4161a

Browse files
committed
format python code with black 20.8b1
1 parent 6c2e893 commit af4161a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

package/scheduler/exceptions.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def ec2_exception(resource_name: str, resource_id: str, exception) -> None:
2828

2929
if exception.response["Error"]["Code"] in error_codes:
3030
logging.warning(
31-
"%s %s: %s", resource_name, resource_id, exception,
31+
"%s %s: %s",
32+
resource_name,
33+
resource_id,
34+
exception,
3235
)
3336
else:
3437
logging.error(
@@ -58,7 +61,10 @@ def rds_exception(resource_name: str, resource_id: str, exception) -> None:
5861
]
5962
if exception.response["Error"]["Code"] in error_codes:
6063
logging.warning(
61-
"%s %s: %s", resource_name, resource_id, exception,
64+
"%s %s: %s",
65+
resource_name,
66+
resource_id,
67+
exception,
6268
)
6369
else:
6470
logging.error(
@@ -82,5 +88,8 @@ def cloudwatch_exception(resource_name: str, resource_id: str, exception):
8288
Human readable string describing the exception
8389
"""
8490
logging.error(
85-
"Unexpected error on %s %s: %s", resource_name, resource_id, exception,
91+
"Unexpected error on %s %s: %s",
92+
resource_name,
93+
resource_id,
94+
exception,
8695
)

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ commands =
2121
basepython = python3
2222
skip_install = true
2323
deps =
24-
black>=19.3b0
24+
black>=20.8b1
2525
commands =
2626
black package/ --line-length 79 --check
2727

0 commit comments

Comments
 (0)