Skip to content

Commit d211f19

Browse files
committed
Fix formatting
1 parent 1eab7e5 commit d211f19

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

glances_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def get_data(self, endpoint: str) -> None:
6161
raise exceptions.GlancesApiAuthorizationError(
6262
"Please check your credentials"
6363
)
64-
64+
6565
if response.status_code != httpx.codes.OK:
6666
raise exceptions.GlancesApiNoDataAvailable(
6767
f"endpoint: '{endpoint}' is not valid"

glances_api/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ class GlancesApiError(Exception):
66

77
pass
88

9+
910
class GlancesApiConnectionError(GlancesApiError):
1011
"""When a connection error is encountered."""
1112

1213
pass
14+
15+
1316
class GlancesApiAuthorizationError(GlancesApiError):
1417
"""When a connection error is encountered."""
1518

1619
pass
1720

21+
1822
class GlancesApiNoDataAvailable(GlancesApiError):
1923
"""When no data is available."""
2024

tests/test_responses.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,7 @@
138138
"memory_use": 1047.1,
139139
"memory_free": 2745.0,
140140
},
141-
"docker": {
142-
"docker_active": 2,
143-
"docker_cpu_use": 77.2,
144-
"docker_memory_use": 1149.6
145-
}
141+
"docker": {"docker_active": 2, "docker_cpu_use": 77.2, "docker_memory_use": 1149.6},
146142
}
147143

148144

0 commit comments

Comments
 (0)