Fixed empty username fallback
This commit is contained in:
parent
d0c4bd618f
commit
88bdcf5f16
|
|
@ -284,7 +284,7 @@ class InfoPlugin(BasePlugin[InfoConfig]):
|
||||||
try:
|
try:
|
||||||
username = getpass.getuser()
|
username = getpass.getuser()
|
||||||
except Exception:
|
except Exception:
|
||||||
username = ""
|
username = "USERNAME"
|
||||||
|
|
||||||
# Add information on platform
|
# Add information on platform
|
||||||
f.writestr(
|
f.writestr(
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ class InfoPlugin(BasePlugin[InfoConfig]):
|
||||||
try:
|
try:
|
||||||
username = getpass.getuser()
|
username = getpass.getuser()
|
||||||
except Exception:
|
except Exception:
|
||||||
username = ""
|
username = "USERNAME"
|
||||||
|
|
||||||
# Add information on platform
|
# Add information on platform
|
||||||
f.writestr(
|
f.writestr(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue