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:
parent
dc94759aff
commit
56e728fc44
@ -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'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user