File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,17 @@ def collect_modules(self):
195195 r = {}
196196 for k in m :
197197 if m [k ]:
198- d = m [k ].__dict__
199- if "version" in d and d ["version" ]:
200- r [k ] = self .jsonable (d ["version" ])
201- elif "__version__" in d and d ["__version__" ]:
202- r [k ] = self .jsonable (d ["__version__" ])
203- else :
204- r [k ] = "builtin"
198+ try :
199+ d = m [k ].__dict__
200+ if "version" in d and d ["version" ]:
201+ r [k ] = self .jsonable (d ["version" ])
202+ elif "__version__" in d and d ["__version__" ]:
203+ r [k ] = self .jsonable (d ["__version__" ])
204+ else :
205+ r [k ] = "builtin"
206+ except Exception as e :
207+ r [k ] = "unknown"
208+ l .error ("collect_modules: could not process module " , k , str (e ))
205209
206210 return r
207211 except Exception as e :
You can’t perform that action at this time.
0 commit comments