summaryrefslogtreecommitdiff
path: root/plugins/screen_detach.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-26 11:50:29 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitd0551c09ba8f5370ab3f40a9359687d5d7ed40bf (patch)
tree4fccbb5f489981a29c27596a45639e39319d8dbe /plugins/screen_detach.py
parentd27895e04e9100e9368a81756c0d679155a571d8 (diff)
downloadpoezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.tar.gz
poezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.tar.bz2
poezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.tar.xz
poezio-d0551c09ba8f5370ab3f40a9359687d5d7ed40bf.zip
fix: typing issues in plugins
Diffstat (limited to 'plugins/screen_detach.py')
-rw-r--r--plugins/screen_detach.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/screen_detach.py b/plugins/screen_detach.py
index 0a2514c4..1f908513 100644
--- a/plugins/screen_detach.py
+++ b/plugins/screen_detach.py
@@ -43,10 +43,10 @@ DEFAULT_CONFIG = {
# overload if this is not how your stuff
# is configured
try:
- LOGIN = os.getlogin()
+ LOGIN = os.getlogin() or ''
LOGIN_TMUX = os.getuid()
except Exception:
- LOGIN = os.getenv('USER')
+ LOGIN = os.getenv('USER') or ''
LOGIN_TMUX = os.getuid()
SCREEN_DIR = '/var/run/screens/S-%s' % LOGIN