From d986570c2e7e9d5b79a898fc86bed426f184e32d Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 7 Sep 2015 13:13:04 +0200 Subject: [PATCH] fix: func.__doc__ might be None on android --- lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index bb79faf48..9cbaa7fd0 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -47,7 +47,7 @@ class Command: self.requires_wallet = 'w' in s self.requires_password = 'p' in s self.description = func.__doc__ - self.help = self.description.split('.')[0] + self.help = self.description.split('.')[0] if self.description else None varnames = func.func_code.co_varnames[1:func.func_code.co_argcount] self.defaults = func.func_defaults if self.defaults: