Skip to content

Commit

Permalink
Oops, flipped condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Feb 12, 2024
1 parent 7199785 commit 2ff1cae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aiochris/models/collection_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class CollectionLinks(AnonymousCollectionLinks):
uploadedfiles: Optional[ApiUrl]

def __post_init__(self):
if (self.userfiles is None) ^ (self.uploadedfiles is None):
raise ValueError("Either userfiles or uploadefiles link must be present")
if not ((self.userfiles is None) ^ (self.uploadedfiles is None)):
raise ValueError("Either userfiles or uploadedfiles link must be present")

@property
def useruploadedfiles(self) -> ApiUrl:
Expand Down
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 = "aiochris"
version = "0.5.0a2"
version = "0.5.0a3"
description = "ChRIS client built on aiohttp"
authors = ["FNNDSC <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 2ff1cae

Please sign in to comment.