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
Fix overrides to clean out when none present.
[nodemanager.git]
/
plcapi.py
diff --git
a/plcapi.py
b/plcapi.py
index
e38b0a5
..
03a9ca7
100644
(file)
--- a/
plcapi.py
+++ b/
plcapi.py
@@
-53,7
+53,10
@@
class PLCAPI:
# just a simple call to check authentication
def check():
if (self.node_id and self.key) or self.session:
# just a simple call to check authentication
def check():
if (self.node_id and self.key) or self.session:
- if self.AuthCheck() == 1: return True
+ try:
+ if self.AuthCheck() == 1: return True
+ except:
+ return False
return False
if not check():
if self.node_id and self.key:
return False
if not check():
if self.node_id and self.key: