1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

- only catch ImportError()'s

This commit is contained in:
Marcus Huewe 2010-03-24 11:16:20 +01:00
parent dc94759aff
commit 56e728fc44

View File

@ -317,7 +317,7 @@ def init_basicauth(config):
try:
import oscssl
from M2Crypto import m2urllib2
except Exception, e:
except ImportError, e:
print e
raise NoSecureSSLError("M2Crypto is needed to access %s in a secure way.\nPlease install python-m2crypto." % config['apiurl'])