commit | d9fbfd6fe10930030283f04b446878cd1f2e9919 | [log] [tgz] |
---|---|---|
author | Mitja Nikolaus <mitja@fairphone.com> | Thu Aug 30 17:38:51 2018 +0200 |
committer | Mitja Nikolaus <mitja@fairphone.com> | Thu Sep 13 07:16:34 2018 +0000 |
tree | 326de2f99a37968a6a2ab5a24337438eb00c83d6 | |
parent | b4e3becf258be824863beea6656f377306fa738f [diff] |
Use more pythonic way of checking whether list is empty Issue: HIC-170 Change-Id: I7dbcd429aeacb194e5420ed71b6eb371f67d99d6
diff --git a/crashreport_stats/views.py b/crashreport_stats/views.py index d9bab4e..58e3261 100644 --- a/crashreport_stats/views.py +++ b/crashreport_stats/views.py
@@ -68,7 +68,7 @@ + "?uuid=" + devices[0].uuid ) - if len(devices) == 0: + if not devices: messages.warning(request, "No devices found.") else: return HttpResponseRedirect(