Skip to content

Commit

Permalink
bugfix and minor version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
psychok7 committed Feb 21, 2017
1 parent bce02d4 commit 26302cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion celery_inspect/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def active_status(self, request):
count_workers = WorkerState.objects.all().count()
result = self.inspect.active()

if count_workers == len(result):
if result is not None and count_workers == len(result):
return Response(status=status.HTTP_200_OK)

return Response(status=status.HTTP_404_NOT_FOUND)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# http://peterdowns.com/posts/first-time-with-pypi.html


VERSION = '0.2'
VERSION = '0.2.1'

here = path.abspath(path.dirname(__file__))

Expand Down

0 comments on commit 26302cd

Please sign in to comment.