fixed pylint

This commit is contained in:
Mark Beamer Jr 2018-09-12 21:44:39 -04:00 committed by Lex Berezhny
parent 559afa465a
commit 65e13898c2

View file

@ -3331,7 +3331,7 @@ class Daemon(AuthJSONRPCServer):
result = re.search(r'^(\d{1,10})\.(\d{1,8})$', amount) result = re.search(r'^(\d{1,10})\.(\d{1,8})$', amount)
if result is not None: if result is not None:
whole, fractional = result.groups() whole, fractional = result.groups()
return int(whole+fractional.ljust(8,"0")) return int(whole+fractional.ljust(8, "0"))
raise ValueError("Invalid value for '{}' argument: {}".format(argument, amount)) raise ValueError("Invalid value for '{}' argument: {}".format(argument, amount))