Skip to content

Commit a6c55de

Browse files
improvements
1 parent c0abb93 commit a6c55de

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

services/efs-guardian/src/simcore_service_efs_guardian/services/efs_manager_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ async def get_size_bash_async(path) -> ByteSize:
2222
# Parse the output
2323
size = ByteSize(stdout.decode().split()[0])
2424
return size
25-
else:
26-
msg = f"Command {' '.join(command)} failed with error code {process.returncode}: {stderr.decode()}"
27-
_logger.error(msg)
28-
raise RuntimeError(msg)
25+
msg = f"Command {' '.join(command)} failed with error code {process.returncode}: {stderr.decode()}"
26+
_logger.error(msg)
27+
raise RuntimeError(msg)
2928

3029

3130
async def remove_write_permissions_bash_async(path) -> None:

services/efs-guardian/src/simcore_service_efs_guardian/services/process_messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
async def process_dynamic_service_running_message(app: FastAPI, data: bytes) -> bool:
1515
assert app # nosec
1616
rabbit_message: DynamicServiceRunningMessage = parse_raw_as(
17-
DynamicServiceRunningMessage, data # type: ignore[arg-type]
17+
DynamicServiceRunningMessage, data
1818
)
1919
_logger.debug(
2020
"Process dynamic service running msg, project ID: %s node ID: %s, current user: %s",

0 commit comments

Comments
 (0)