Skip to content

Commit 49c4d80

Browse files
Fix lint errors
1 parent b0d878d commit 49c4d80

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

backend/app/utils/microservice.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def microservice_util_start_sync_service(
2929
try:
3030
# Check if running as a frozen executable (PyInstaller)
3131
if getattr(sys, "frozen", False):
32-
logger.info("Running as frozen executable, using bundled sync microservice...")
32+
logger.info(
33+
"Running as frozen executable, using bundled sync microservice..."
34+
)
3335
return _start_frozen_sync_service()
3436

3537
# Development mode - use virtual environment setup
@@ -66,7 +68,9 @@ def _start_frozen_sync_service() -> bool:
6668
sync_executable = sync_dir / "PictoPy_Sync"
6769

6870
if not sync_executable.exists():
69-
logger.error(f"Sync microservice executable not found at: {sync_executable}")
71+
logger.error(
72+
f"Sync microservice executable not found at: {sync_executable}"
73+
)
7074
return False
7175

7276
logger.info(f"Starting sync microservice from: {sync_executable}")
@@ -232,7 +236,9 @@ def _start_fastapi_service(python_executable: Path, service_path: Path) -> bool:
232236
cmd = [str(python_executable), "-m", "fastapi", "dev", "--port", "8001"]
233237

234238
# Start the process (non-blocking)
235-
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
239+
process = subprocess.Popen(
240+
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
241+
)
236242

237243
# Restore original working directory
238244
os.chdir(original_cwd)

0 commit comments

Comments
 (0)