Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

donot explode if there is nothing to display

  • Loading branch information...
commit 56b61377ed0880f3330e98e454145bdb26c978ef 1 parent 6972abd
@Rafiot Rafiot authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/helpers/common_report.py
View
5 lib/helpers/common_report.py
@@ -80,7 +80,10 @@ def get_multiple_daily_rank(self, asn_list, date, source):
source = source,\
ip_key = self.ip_key)
to_get = ['{asn}{string}'.format(asn = asn, string = string) for asn in asn_list]
- return self.history_db.mget(to_get)
+ if len(to_get) != 0:
+ return self.history_db.mget(to_get)
+ else :
+ return None
def get_daily_rank_client(self, asn, date, source = None):
"""

0 comments on commit 56b6137

Please sign in to comment.
Something went wrong with that request. Please try again.