better warning when certs missing

This commit is contained in:
Damien Elmes 2013-01-26 22:25:50 +09:00
parent 439130d58a
commit 8aadb18d4d

View File

@ -37,7 +37,7 @@ def httpCon():
os.path.dirname(os.path.abspath(sys.argv[0])),
"../Resources/ankiweb.certs")
else:
assert 0
assert 0, "Your distro has not packaged Anki correctly."
return httplib2.Http(
timeout=HTTP_TIMEOUT, ca_certs=certs,
proxy_info=HTTP_PROXY,