File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,6 +103,12 @@ jobs:
103103 path : ~/.cache/ctapipe
104104 key : ctapipe-test-data-desy
105105
106+ - name : cache astropy data
107+ uses : actions/cache@v4
108+ with :
109+ path : ~/.astropy/cache
110+ key : astropy-cache
111+
106112 - name : Prepare mamba installation
107113 if : matrix.install-method == 'mamba' && contains(github.event.pull_request.labels.*.name, 'documentation-only') == false
108114 env :
Original file line number Diff line number Diff line change 1+ Fallback to "Unknown User" in case no username is available
2+ from the system for provenance.
Original file line number Diff line number Diff line change @@ -73,9 +73,10 @@ def _get_user_name():
7373 import pwd
7474
7575 return pwd .getpwuid (os .getuid ()).pw_gecos
76- except ImportError :
77- # the pwd module is not available on some non-unix systems (Windows), so
78- # here we just fall back to a default name
76+ except Exception :
77+ # the pwd module is not available on some non-unix systems (Windows)
78+ # also, a username might not exist (e.g. in docker containers run with a custom uid)
79+ # so here we just fall back to a default name
7980 return "Unknown User"
8081
8182
You can’t perform that action at this time.
0 commit comments