pyvikunja 0.9__tar.gz → 0.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyvikunja
3
- Version: 0.9
3
+ Version: 0.10
4
4
  Summary: A Python wrapper for Vikunja API
5
5
  Author: Joseph Shufflebotham
6
6
  License: AGPL
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyvikunja"
7
- version = "0.9"
7
+ version = "0.10"
8
8
  description = "A Python wrapper for Vikunja API"
9
9
  authors = [
10
10
  {name = "Joseph Shufflebotham"}
@@ -48,7 +48,11 @@ class Task(BaseModel):
48
48
 
49
49
  def _parse_repeat_after(self, seconds: Optional[int]) -> Optional[timedelta]:
50
50
  """Convert repeat_after seconds into a timedelta."""
51
- return timedelta(seconds=seconds) if seconds else None
51
+ try:
52
+ return timedelta(seconds=seconds) if seconds else None
53
+ except:
54
+ # Error parsing seconds to timedelta. Possibly too large.
55
+ return None
52
56
 
53
57
  async def update(self, data: Dict) -> 'Task':
54
58
  # Merge self.data with the new data (data overrides keys in self.data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyvikunja
3
- Version: 0.9
3
+ Version: 0.10
4
4
  Summary: A Python wrapper for Vikunja API
5
5
  Author: Joseph Shufflebotham
6
6
  License: AGPL
File without changes
File without changes
File without changes
File without changes
File without changes