Explorar o código

Try to fix bug with python 3.4.1

oz123 %!s(int64=10) %!d(string=hai) anos
pai
achega
61729be8a7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pwman/__init__.py

+ 1 - 0
pwman/__init__.py

@@ -64,6 +64,7 @@ def which(cmd):
         cmd = os.path.join(path, cmdname)
         cmd = os.path.join(path, cmdname)
         if os.path.isfile(cmd) and os.access(cmd, os.X_OK):  # pragma: no cover
         if os.path.isfile(cmd) and os.access(cmd, os.X_OK):  # pragma: no cover
             return cmd
             return cmd
+    return ''
 
 
 config_dir = os.path.expanduser("~/.pwman")
 config_dir = os.path.expanduser("~/.pwman")