mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 05:53:03 -04:00
Fixed empty username fallback
This commit is contained in:
committed by
Martin Donath
parent
d0c4bd618f
commit
88bdcf5f16
@@ -284,7 +284,7 @@ class InfoPlugin(BasePlugin[InfoConfig]):
|
||||
try:
|
||||
username = getpass.getuser()
|
||||
except Exception:
|
||||
username = ""
|
||||
username = "USERNAME"
|
||||
|
||||
# Add information on platform
|
||||
f.writestr(
|
||||
|
||||
@@ -284,7 +284,7 @@ class InfoPlugin(BasePlugin[InfoConfig]):
|
||||
try:
|
||||
username = getpass.getuser()
|
||||
except Exception:
|
||||
username = ""
|
||||
username = "USERNAME"
|
||||
|
||||
# Add information on platform
|
||||
f.writestr(
|
||||
|
||||
Reference in New Issue
Block a user