Skip to content

Commit

Permalink
Add compatibility with older humanize versions (#1196)
Browse files Browse the repository at this point in the history
Also drop the humanize pinning since newer versions work too.

Fixes: commit 70b1ae4
See-also: #1156
  • Loading branch information
pabs3 committed May 21, 2022
1 parent f41b072 commit d78e53c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flower/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def bugreport(app=None):
return 'flower -> flower:%s tornado:%s humanize:%s%s' % (
__version__,
tornado.version,
humanize.__version__,
getattr(humanize, '__version__', None) or getattr(humanize, 'VERSION'),
app.bugreport()
)
except (ImportError, AttributeError) as e:
Expand Down
2 changes: 1 addition & 1 deletion requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
celery>=5.0.5
tornado>=5.0.0,<7.0.0
prometheus_client>=0.8.0
humanize==3.12.0
humanize
pytz

0 comments on commit d78e53c

Please sign in to comment.