Skip to content

Commit

Permalink
Fix bytes/string mismatch
Browse files Browse the repository at this point in the history
We cannot call .encode() and then concatenate the result to a string.
  • Loading branch information
keszybz committed May 28, 2018
1 parent 0f9425d commit e7a240c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion massmail
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def parse_parameter_file(options):
# check that all keywords start and finish with a '$' character
for key in keywords_list:
if not key.startswith('$') or not key.endswith('$'):
error(('Keyword "%s" malformed: should be $KEYWORD$'%key).encode(options['encoding']))
error('Keyword "%s" malformed: should be $KEYWORD$'%key)

# gather all values
email_count = 0
Expand Down

0 comments on commit e7a240c

Please sign in to comment.