Skip to content

Commit

Permalink
Merge pull request #32 from nevermined-io/fix/method
Browse files Browse the repository at this point in the history
fix: method to pick env
  • Loading branch information
eruizgar91 authored Oct 21, 2024
2 parents a0fa788 + d566f5a commit 8f3d0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion payments_py/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def get_environment(cls, name):
env = Environment.get_environment('local')
"""
try:
return cls[name].value
return cls[name]
except KeyError:
raise ValueError(f"Environment '{name}' is not defined.")
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "payments-py"
version = "0.4.5"
version = "0.4.6"
description = ""
authors = ["enrique <enrique@nevermined.io>"]
readme = "README.md"
Expand Down

0 comments on commit 8f3d0b3

Please sign in to comment.