@ -2872,9 +2872,7 @@ def parseOpts():
return parser, opts, args
if __name__ == '__main__':
try:
def main():
parser, opts, args = parseOpts()
# Open appropriate CookieJar
@ -3046,6 +3044,10 @@ if __name__ == '__main__':
sys.exit(retcode)
main()
except DownloadError:
sys.exit(1)
except SameFileError: