Skip to content

Commit 2cf5795

Browse files
committed
graphIO : try/except on getpass.getuser to avoid issues
1 parent 10024cc commit 2cf5795

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

meshroom/core/graphIO.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def serializeHeader(self) -> dict:
9696
header: dict[str, Any] = {}
9797
header[GraphIO.Keys.ReleaseVersion] = meshroom.__version__
9898
header[GraphIO.Keys.FileVersion] = GraphIO.__version__
99-
header[GraphIO.Keys.Username] = getpass.getuser()
99+
try:
100+
header[GraphIO.Keys.Username] = getpass.getuser()
101+
except Exception:
102+
header[GraphIO.Keys.Username] = ""
100103
header[GraphIO.Keys.NodesVersions] = self._getNodeTypesVersions()
101104
if self._graph._hasExplicitCacheDir:
102105
# We store the absolute but also the relative cacheDir path (to the scene file)

0 commit comments

Comments
 (0)