mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-21 05:54:20 +01:00
fixup! pylightning: Added a tiny library for python plugins
This commit is contained in:
@@ -2,6 +2,7 @@ import sys
|
||||
import os
|
||||
import json
|
||||
import inspect
|
||||
import re
|
||||
import traceback
|
||||
|
||||
|
||||
@@ -241,6 +242,7 @@ class Plugin(object):
|
||||
continue
|
||||
|
||||
doc = inspect.getdoc(func)
|
||||
doc = re.sub('\n+', ' ', doc)
|
||||
if not doc:
|
||||
self.log(
|
||||
'RPC method \'{}\' does not have a docstring.'.format(name)
|
||||
|
||||
Reference in New Issue
Block a user