commit acaffe552d5a8c296ebe50a32e884b74a7ca9b4f
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Tue Apr 21 15:10:44 2015 +0200
Fix "Module 'os' has no 'exit' member" error
Found with pylint. Fix typo when module os is used instead of sys for calling exit
method
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Common/Daemon.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Common/Daemon.py b/lnst/Common/Daemon.py
index 9dd2847..6fbf950 100644
--- a/lnst/Common/Daemon.py
+++ b/lnst/Common/Daemon.py
@@ -57,7 +57,7 @@ class Daemon:
if pid:
if self._check_pid(pid):
logging.error("pidfile in use")
- os.exit(1)
+ sys.exit(1)
else:
self._del_pidfile()
try:
Show replies by thread