File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,12 @@ def fit(
370370 # Produce debug information to the logfile
371371 self ._logger .debug ('Starting to print environment information' )
372372 self ._logger .debug (' Python version: %s' , sys .version .split ('\n ' ))
373- self ._logger .debug (' Distribution: %s' , platform .dist ())
373+ try :
374+ self ._logger .debug (' Distribution: %s' , platform .linux_distribution ())
375+ except AttributeError :
376+ # platform.linux_distribution() was removed in Python3.8
377+ # We should move to the distro package as soon as it supports Windows and OSX
378+ pass
374379 self ._logger .debug (' System: %s' , platform .system ())
375380 self ._logger .debug (' Machine: %s' , platform .machine ())
376381 self ._logger .debug (' Platform: %s' , platform .platform ())
You can’t perform that action at this time.
0 commit comments