Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d51b4b

Browse files
committed
Minor bug fix
1 parent d6606a8 commit 8d51b4b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,8 @@ def safeStringFormat(format_, params):
13761376

13771377
if isinstance(params, basestring):
13781378
retVal = retVal.replace("%s", params)
1379+
elif not isListLike(params):
1380+
retVal = retVal.replace("%s", str(params))
13791381
else:
13801382
count, index = 0, 0
13811383
while index != -1:

0 commit comments

Comments
 (0)