Fix for an Issue #883

This commit is contained in:
Miroslav Stampar 2014-10-31 01:01:35 +01:00
parent b7aeb670e1
commit 5b0d74146e

View File

@ -860,6 +860,9 @@ def cmdLineParser():
try: try:
(args, _) = parser.parse_args(argv) (args, _) = parser.parse_args(argv)
except UnicodeEncodeError, ex:
print "\n[!] %s" % ex.object.encode("unicode-escape")
raise SystemExit
except SystemExit: except SystemExit:
if "-h" in argv and not advancedHelp: if "-h" in argv and not advancedHelp:
print "\n[!] to see full list of options run with '-hh'" print "\n[!] to see full list of options run with '-hh'"