Giter Club home page Giter Club logo

Comments (3)

isFakeAccount avatar isFakeAccount commented on August 23, 2024

@joalisonx Can you provide details on how to reproduce this error?

Also paste the full stack trace.

from psnawp.

joalisonx avatar joalisonx commented on August 23, 2024

Sure. It also gives me the same error with PS Vita platform.

client = PSNAWP(get_env()["npsso"])
game = client.game_title(title_id="NPWR04151_00", np_communication_id="NPWR04151_00").trophy_groups_summary("PS3")
Traceback (most recent call last):
  File "/platinador/src/ext/find.py", line 26, in find
    game = get_game(game_id, platform)
  File "/platinador/src/utils/utils.py", line 35, in get_game
    raise err
  File "/platinador/src/utils/utils.py", line 26, in get_game
    game = client.game_title(title_id=game_id, np_communication_id=game_id).trophy_groups_summary(platform)
  File "/lib/python3.8/site-packages/psnawp_api/models/game_title.py", line 119, in trophy_groups_summary
    return TrophyGroupsSummaryBuilder(
  File "/lib/python3.8/site-packages/psnawp_api/models/trophies/trophy_group.py", line 162, in game_title_trophy_groups_summary
    return _trophy_groups_dict_to_obj(response)
  File "/lib/python3.8/site-packages/psnawp_api/models/trophies/trophy_group.py", line 99, in _trophy_groups_dict_to_obj
    trophy_title_platform=PlatformType(trophy_groups_dict.get("trophyTitlePlatform", "UNKNOWN")),
  File "/lib/python3.8/enum.py", line 304, in __call__
    return cls.__new__(cls, value)
  File "/lib/python3.8/enum.py", line 595, in __new__
    raise exc
  File "/lib/python3.8/enum.py", line 579, in __new__
    result = cls._missing_(value)
  File "/lib/python3.8/enum.py", line 608, in _missing_
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 'PS3,PSVITA' is not a valid PlatformType

from psnawp.

isFakeAccount avatar isFakeAccount commented on August 23, 2024

This bug is fixed in version 1.3.2 https://github.com/isFakeAccount/psnawp/releases/tag/v1.3.2

from psnawp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.