File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 38
38
# seen in sshd+sftpsubsys sessions. Apparently there's a bug / C-API
39
39
# incompatibility when using yaml in embedded python interpreters,
40
40
# due to yaml using its own nested C-extensions. In practice it
41
- # results in a metaclass conflict TypeError upon yaml re-init there
42
- # like described in
41
+ # results in a metaclass conflict TypeError or SystemError upon yaml
42
+ # re-init there like described in
43
43
# https://github.com/ros-drivers/rosserial/issues/450
44
+ # On Rocky 9 it's the TypeError and on Rocky 8 the SystemError.
44
45
try :
45
46
import json
46
47
except ImportError :
49
50
import yaml
50
51
except ImportError :
51
52
yaml = None
52
- except TypeError :
53
+ except ( TypeError , SystemError ) :
53
54
# NOTE: this should not really happen but it does with sshd+sftpsubsys in
54
55
# our PAM module hooking into this code as described above. We don't
55
56
# actually need yaml in that case so just silently ignore it here and
You can’t perform that action at this time.
0 commit comments