git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The seed for random previously was the meaning of life (i.e., 42) but
[nodemanager.git]
/
plcapi.py
diff --git
a/plcapi.py
b/plcapi.py
index
2ef5dc1
..
be77171
100644
(file)
--- a/
plcapi.py
+++ b/
plcapi.py
@@
-50,8
+50,13
@@
class PLCAPI:
def check_authentication(self):
def check_authentication(self):
- # just a simple call to check authentication
- return self.AuthCheck(self)
+ authstatus = False
+ if self.key or self.session:
+ try:
+ authstatus = self.AuthCheck()
+ except:
+ logger.log_exc()
+ return authstatus
def add_auth(self, function):
def add_auth(self, function):