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

Update arrow requirement from <=0.13,>=0.4 to >=0.4,<=1.3.0 #2538

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"flask-mail>=0.9,<0.10",
"flask-script>=2.0.5,<3.0",
"flask-babel>=1.0,<4.1",
"arrow>=0.4,<=1.3.0",
"pillow>=9.2,<10.4",
"arrow>=0.4,<=0.13",
"bcrypt>=3.1.1,<4.2",
"blinker>=1.3,<1.8",
"celery[redis]>=5.2.7,<5.3",
Expand Down
4 changes: 2 additions & 2 deletions superdesk/io/feed_parsers/newsml_2_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ def datetime(self, string):
return datetime.datetime.strptime(string, "%Y-%m-%dT%H:%M:%S.000Z")
except (ValueError, TypeError):
try:
return arrow.get(string).datetime
return arrow.get(string.strip()).datetime
except arrow.parser.ParserError:
raise ValueError(string)
raise ValueError(string.strip())

def get_literal_name(self, item):
"""Get name for item with fallback to literal attribute if name is not provided."""
Expand Down
Loading