File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
polyaxon_client/tracking/utils Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,19 @@ def get_packages():
49
49
version = pkg_resources .get_distribution (PROJECT_CLIENT_NAME ).version
50
50
except pkg_resources .DistributionNotFound :
51
51
version = ''
52
+ try :
53
+ user = getpass .getuser ()
54
+ except Exception as e :
55
+ logger .debug ('Could not detect installed packages, %s' , e )
56
+ user = 'unknown'
52
57
return {
53
58
'pid' : os .getpid (),
54
59
'hostname' : socket .gethostname (),
55
60
'os' : platform .platform (aliased = True ),
56
61
'system' : platform .system (),
57
62
'python_version_verbose' : sys .version ,
58
63
'python_version' : platform .python_version (),
59
- 'user' : getpass . getuser () ,
64
+ 'user' : user ,
60
65
'client_version' : version ,
61
66
'sys.argv' : sys .argv ,
62
67
'is_notebook' : is_notebook (),
You can’t perform that action at this time.
0 commit comments