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
9b0056e6
Commit
9b0056e6
authored
Aug 16, 2022
by
Andrey Vertiprahov
Browse files
Linksys.SWR.login. Not used message for NOCError.
parent
0b3cc66a
Pipeline
#37228
passed with stages
in 14 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Linksys/SRW/login.py
View file @
9b0056e6
...
...
@@ -25,6 +25,6 @@ class Script(BaseScript):
self
.
cli
(
"
\x1A
"
)
return
{
"result"
:
True
,
"message"
:
""
}
except
NOCError
as
e
:
return
{
"result"
:
False
,
"message"
:
"Error:
%s (%s)"
%
(
e
.
default_msg
,
e
.
message
)
}
return
{
"result"
:
False
,
"message"
:
f
"Error:
{
e
.
default_msg
}
(
{
e
!r}
)"
}
except
Exception
as
e
:
return
{
"result"
:
False
,
"message"
:
"Exception: %s"
%
repr
(
e
)}
Andrey Vertiprahov
@aversant
mentioned in commit
9e92d592
·
Aug 16, 2022
mentioned in commit
9e92d592
mentioned in commit 9e92d592654137d10c821bfd50a0cfbad587a7f4
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!6575 (merged)
·
Aug 16, 2022
mentioned in merge request
!6575 (merged)
mentioned in merge request !6575
Toggle commit list
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