mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-17 11:25:48 +02:00
Fix for Information exposure through an exception #72
This commit is contained in:
@@ -587,9 +587,10 @@ async def update_virtual_printer_settings(
|
||||
target_printer_serial=target_printer_serial,
|
||||
)
|
||||
except ValueError as e:
|
||||
logger.warning(f"Virtual printer configuration validation error: {e}")
|
||||
return JSONResponse(
|
||||
status_code=400,
|
||||
content={"detail": str(e)},
|
||||
content={"detail": "Invalid virtual printer configuration. Check the provided values."},
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to configure virtual printer: {e}", exc_info=True)
|
||||
|
||||
Reference in New Issue
Block a user