Skip to content

Commit

Permalink
fixes from trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Jul 3, 2024
1 parent 50bcd00 commit 39708ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion backend/alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from config.config_manager import ConfigManager
from models.assets import Save, Screenshot, State # noqa
from models.base import BaseModel
from models.collection import Collection
from models.firmware import Firmware # noqa
from models.platform import Platform # noqa
from models.rom import Rom # noqa
Expand Down
4 changes: 2 additions & 2 deletions backend/endpoints/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ async def update_collection(request: Request, id: int) -> MessageResponse:
try:
try:
roms = json.loads(data["roms"])
except json.JSONDecodeError:
raise ValueError("Invalid list for roms field in update collection")
except json.JSONDecodeError as e:
raise ValueError("Invalid list for roms field in update collection") from e
except KeyError:
roms = collection.roms

Expand Down
1 change: 0 additions & 1 deletion backend/endpoints/sockets/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import emoji
import socketio # type: ignore
from config import SCAN_TIMEOUT
from endpoints.responses.firmware import FirmwareSchema
from endpoints.responses.platform import PlatformSchema
from endpoints.responses.rom import RomSchema
from exceptions.fs_exceptions import (
Expand Down

0 comments on commit 39708ff

Please sign in to comment.