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])), os.path.dirname(os.path.abspath(sys.argv[0])),
"../Resources/ankiweb.certs") "../Resources/ankiweb.certs")
else: else:
assert 0 assert 0, "Your distro has not packaged Anki correctly."
return httplib2.Http( return httplib2.Http(
timeout=HTTP_TIMEOUT, ca_certs=certs, timeout=HTTP_TIMEOUT, ca_certs=certs,
proxy_info=HTTP_PROXY, proxy_info=HTTP_PROXY,