build: we need this isinstance() check for distcheck
[samba.git] / buildtools / wafsamba / samba_dist.py
index 68fdf08b804719db051bbc51e103693a2d4196a8..b4a6cbb2405e1b8d9685b5b4792ceeeec73ae3a2 100644 (file)
@@ -19,7 +19,7 @@ def add_tarfile(tar, fname, abspath):
 
 
 def dist(appname='',version=''):
-    if not appname:
+    if not isinstance(appname, str) or not appname:
         # this copes with a mismatch in the calling arguments for dist()
         appname = Utils.g_module.APPNAME
         version = Utils.g_module.VERSION