Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix duplicate in Enum #39

Merged
merged 1 commit into from
Oct 25, 2024
Merged

fix duplicate in Enum #39

merged 1 commit into from
Oct 25, 2024

Conversation

wakamex
Copy link
Contributor

@wakamex wakamex commented Oct 24, 2024

was getting this error:

Traceback (most recent call last):
  File "/code/ethena_sats_adapters/integrations/hyperdrive.py", line 3, in <module>
    from constants.chains import Chain
  File "/code/ethena_sats_adapters/constants/chains.py", line 4, in <module>
    class Chain(Enum):
  File "/code/ethena_sats_adapters/constants/chains.py", line 12, in Chain
    FRAXTAL = "Fraxtal"
  File "/usr/lib64/python3.10/enum.py", line 134, in __setitem__
    raise TypeError('Attempted to reuse key: %r' % key)
TypeError: Attempted to reuse key: 'FRAXTAL'

was getting this error:

```
Traceback (most recent call last):
  File "/code/ethena_sats_adapters/integrations/hyperdrive.py", line 3, in <module>
    from constants.chains import Chain
  File "/code/ethena_sats_adapters/constants/chains.py", line 4, in <module>
    class Chain(Enum):
  File "/code/ethena_sats_adapters/constants/chains.py", line 12, in Chain
    FRAXTAL = "Fraxtal"
  File "/usr/lib64/python3.10/enum.py", line 134, in __setitem__
    raise TypeError('Attempted to reuse key: %r' % key)
TypeError: Attempted to reuse key: 'FRAXTAL'
```
@FJ-Riveros
Copy link
Contributor

Thx @wakamex!

@FJ-Riveros FJ-Riveros merged commit 2391990 into ethena-labs:main Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants