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

Skip to content

Commit 5b0d741

Browse files
committed
Fix for an Issue #883
1 parent b7aeb67 commit 5b0d741

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/parse/cmdline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,9 @@ def _(self, *args):
860860

861861
try:
862862
(args, _) = parser.parse_args(argv)
863+
except UnicodeEncodeError, ex:
864+
print "\n[!] %s" % ex.object.encode("unicode-escape")
865+
raise SystemExit
863866
except SystemExit:
864867
if "-h" in argv and not advancedHelp:
865868
print "\n[!] to see full list of options run with '-hh'"

0 commit comments

Comments
 (0)