Skip to content

Commit 05bbf68

Browse files
authored
ValueError: zero length field name in format
1 parent ccfb9e4 commit 05bbf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cbapi/legacy/cbapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def watchlist_add(self, type, name, search_query, id=None, readonly=False, basic
429429
# change all "+" to "%20" (percent-encoding)
430430
search_query = search_query.replace("+", "%20")
431431
# ensure that "cb.urlver=1" is the first parameter
432-
search_query = "cb.urlver=1&{}".format(search_query)
432+
search_query = "cb.urlver=1&{0}".format(search_query)
433433

434434
# ensure that the query itself is properly encoded
435435
# This is now strengthened to enforce url encoding on all parameters

0 commit comments

Comments
 (0)