Fixed empty username fallback
This commit is contained in:
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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue