Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
04fbc4a2
Commit
04fbc4a2
authored
Sep 21, 2021
by
Andrey Vertiprahov
Browse files
Merge branch 'fix-avs-dlink-dir-login' into 'master'
DLink.DIR.login. Fix return result. See merge request
!5749
parents
06752a7d
d9a39eae
Pipeline
#33560
passed with stages
in 46 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/DLink/DIR/login.py
View file @
04fbc4a2
...
...
@@ -22,6 +22,6 @@ class Script(BaseScript):
def
execute
(
self
):
try
:
self
.
http
.
get
(
"/"
)
return
True
except
Exception
:
return
False
return
{
"result"
:
True
,
"message"
:
""
}
except
Exception
as
e
:
return
{
"result"
:
False
,
"message"
:
str
(
e
)}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment