1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-10 13:05:46 +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: try:
import oscssl import oscssl
from M2Crypto import m2urllib2 from M2Crypto import m2urllib2
except Exception, e: except ImportError, e:
print e print e
raise NoSecureSSLError("M2Crypto is needed to access %s in a secure way.\nPlease install python-m2crypto." % config['apiurl']) raise NoSecureSSLError("M2Crypto is needed to access %s in a secure way.\nPlease install python-m2crypto." % config['apiurl'])