From 4c996b1f93d6c6c5e386a9e514e91719b16e5c66 Mon Sep 17 00:00:00 2001 From: squigglezworth Date: Mon, 27 Nov 2017 09:40:32 -0500 Subject: [PATCH] Properly validate 'max_public' as an integer --- sopel_modules/wolfram/wolfram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel_modules/wolfram/wolfram.py b/sopel_modules/wolfram/wolfram.py index 3713e5b..f3d757c 100644 --- a/sopel_modules/wolfram/wolfram.py +++ b/sopel_modules/wolfram/wolfram.py @@ -15,7 +15,7 @@ class WolframSection(StaticSection): app_id = ValidatedAttribute('app_id', default=None) - max_public = ValidatedAttribute('max_public', default=5) + max_public = ValidatedAttribute('max_public', parse=int, default=5) units = ChoiceAttribute('units', choices=['metric', 'nonmetric'], default='metric')