Skip to content
This repository has been archived by the owner on Oct 25, 2020. It is now read-only.

Commit

Permalink
Improve wording in dupe error inside parse_qs_single
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Nov 30, 2015
1 parent 28b5cc1 commit 521622c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yturl.py
Expand Up @@ -103,7 +103,7 @@ def parse_qs_single(query_string):

dupes = [key for (key, values) in iteritems(raw_pairs) if len(values) > 1]
if dupes:
raise ValueError('Duplicate values for keys: %r' % dupes)
raise ValueError('Duplicate keys in query string: %r' % dupes)

one_val_pairs = {key: values[0] for (key, values) in iteritems(raw_pairs)}
return one_val_pairs
Expand Down

0 comments on commit 521622c

Please sign in to comment.