1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 12:28:41 +00:00

#208 .name isn't callable in specific psutil

This commit is contained in:
nvbn 2015-05-20 16:41:11 +03:00
parent c42898dde3
commit d6ce5e1e62

View File

@ -161,7 +161,7 @@ def _get_shell():
try: try:
shell = Process(os.getpid()).parent().name() shell = Process(os.getpid()).parent().name()
except TypeError: except TypeError:
shell = Process(os.getpid()).parent.name() shell = Process(os.getpid()).parent.name
return shells[shell] return shells[shell]