Smart123s / ItchClaim

Automatically claim free games from itch.io
https://itchclaim.tmbpeter.com
MIT License
52 stars 1 forks source link

Error: unsupported operand types #12

Closed mgrimace closed 2 months ago

mgrimace commented 2 months ago

Using docker implementation, I get the following error upon starting the container:

Traceback (most recent call last):
  File "itchclaim.py", line 3, in <module>
    from ItchClaim.__main__ import main
  File "/app/ItchClaim/__main__.py", line 27, in <module>
    from .web import generate_web
  File "/app/ItchClaim/web.py", line 30, in <module>
    from .ItchGame import ItchGame
  File "/app/ItchClaim/ItchGame.py", line 32, in <module>
    class ItchGame:
  File "/app/ItchClaim/ItchGame.py", line 178, in ItchGame
    def claimable(self) -> bool|None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

For reference, I am using docker compose:

services:
  itchclaim:
    container_name: itch
    image: ghcr.io/smart123s/itchclaim
    volumes:
      - /root/docker/appdata/itch:/data
    command: [
      "--login", "${USERNAME}",
      "--password", "${PASSWORD}",
      "claim"
    ]
Smart123s commented 2 months ago

Fixed in https://github.com/Smart123s/ItchClaim/commit/706fd967a6b86837f981fc9b7abd88365811f5ed