mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 22:38:09 -05:00
Cast to int the comment tree version chosen by weighted lottery.
This commit is contained in:
@@ -129,7 +129,7 @@ class Link(Thing, Printable):
|
||||
except KeyError:
|
||||
return cls._defaults['comment_tree_version']
|
||||
try:
|
||||
return utils.weighted_lottery(weights)
|
||||
return int(utils.weighted_lottery(weights))
|
||||
except ValueError, ex:
|
||||
g.log.error("error choosing comment tree version: %s", ex.message)
|
||||
return cls._defaults['comment_tree_version']
|
||||
|
||||
Reference in New Issue
Block a user