From: Frank Brehm Date: Thu, 6 Dec 2018 17:07:42 +0000 (+0100) Subject: Some changes because of fb_tools.common X-Git-Tag: 1.6.4^2~109 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c9270f958ce4444013638ab14ebea622b0c65f4a;p=pixelpark%2Fpuppetmaster-webhooks.git Some changes because of fb_tools.common --- diff --git a/lib/webhooks/handler.py b/lib/webhooks/handler.py index d22b5d8..69da623 100644 --- a/lib/webhooks/handler.py +++ b/lib/webhooks/handler.py @@ -33,7 +33,7 @@ from .errors import CommandNotFoundError from .obj import BaseObjectError from .obj import BaseObject -__version__ = '1.2.0' +__version__ = '1.2.1' LOG = logging.getLogger(__name__) @@ -288,7 +288,7 @@ class BaseHandler(BaseObject): return os.path.normpath(cmd) # Checking a relative path - for d in caller_search_path(): + for d in map(str, caller_search_path()): if self.verbose > 3: LOG.debug("Searching command in {!r} ...".format(d)) p = os.path.join(d, cmd)