Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image-creator
Commits
76f42c27
Commit
76f42c27
authored
Mar 22, 2013
by
Nikos Skalkotos
Browse files
Fix an undefined variable bug
Variable d in function valideate_account was undefined
parent
fab154f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
image_creator/dialog_wizard.py
View file @
76f42c27
...
...
@@ -175,7 +175,6 @@ class WizardInputPage(WizardPage):
def
wizard
(
session
):
init_token
=
Kamaki
.
get_token
()
if
init_token
is
None
:
init_token
=
""
...
...
@@ -198,14 +197,15 @@ def wizard(session):
title
=
"Registration Type"
,
default
=
"Private"
)
def
validate_account
(
token
):
d
=
session
[
'dialog'
]
if
len
(
token
)
==
0
:
d
.
msgbox
(
"The token cannot be empty"
,
width
=
PAGE_WIDTH
)
raise
WizardInvalidData
account
=
Kamaki
.
get_account
(
token
)
if
account
is
None
:
session
[
'dialog'
].
msgbox
(
"The token you provided in not valid!"
,
width
=
PAGE_WIDTH
)
d
.
msgbox
(
"The token you provided in not valid!"
,
width
=
PAGE_WIDTH
)
raise
WizardInvalidData
return
account
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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