mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-09 20:45:47 +01:00
- only catch ImportError()'s
This commit is contained in:
parent
dc94759aff
commit
56e728fc44
@ -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'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user