Skip to content

Commit ea39aea

Browse files
committed
Revert "Merge pull request #978 from CitrineInformatics/revert-977-bugfix/use-generic-for-project-register"
This reverts commit 331afee, reversing changes made to ce9b368.
1 parent b627407 commit ea39aea

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/citrine/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.11.4"
1+
__version__ = "3.11.3"

src/citrine/resources/project.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from citrine._serialization import properties
1313
from citrine._session import Session
1414
from citrine._utils.functions import format_escaped_url
15-
from citrine.exceptions import NonRetryableException, ModuleRegistrationFailedException
1615
from citrine.resources.api_error import ApiError
1716
from citrine.resources.branch import BranchCollection
1817
from citrine.resources.dataset import DatasetCollection
@@ -592,12 +591,7 @@ def register(self, name: str, *, description: Optional[str] = None) -> Project:
592591
"Use team.projects.register.")
593592

594593
project = Project(name, description=description)
595-
try:
596-
data = self.session.post_resource(self._get_path(), project.dump())
597-
data = data[self._individual_key]
598-
return self.build(data)
599-
except NonRetryableException as e:
600-
raise ModuleRegistrationFailedException(project.__class__.__name__, e)
594+
return super().register(project)
601595

602596
def list(self, *, per_page: int = 1000) -> Iterator[Project]:
603597
"""
@@ -741,7 +735,7 @@ def delete(self, uid: Union[UUID, str]) -> Response:
741735
If the project is not empty, then the Response will contain a list of all of the project's
742736
resources. These must be deleted before the project can be deleted.
743737
"""
744-
# Only the team-agnostic project get is implemented
738+
# Only the team-agnostic project delete is implemented
745739
if self.team_id is None:
746740
return super().delete(uid)
747741
else:

0 commit comments

Comments
 (0)