Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
3ce7a8bf
Commit
3ce7a8bf
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug when looking up for users
parent
c922120b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cutecoin/core/registry/identities.py
+4
-2
4 additions, 2 deletions
src/cutecoin/core/registry/identities.py
with
4 additions
and
2 deletions
src/cutecoin/core/registry/identities.py
+
4
−
2
View file @
3ce7a8bf
...
@@ -69,7 +69,8 @@ class IdentitiesRegistry:
...
@@ -69,7 +69,8 @@ class IdentitiesRegistry:
def
future_find
(
self
,
pubkey
,
community
):
def
future_find
(
self
,
pubkey
,
community
):
def
handle_certifiersof_reply
(
reply
,
tries
=
0
):
def
handle_certifiersof_reply
(
reply
,
tries
=
0
):
err
=
reply
.
error
()
err
=
reply
.
error
()
if
reply
.
error
()
==
QNetworkReply
.
NoError
:
# https://github.com/ucoin-io/ucoin/issues/146
if
reply
.
error
()
==
QNetworkReply
.
NoError
or
reply
.
error
()
==
QNetworkReply
.
ProtocolInvalidOperationError
:
status_code
=
reply
.
attribute
(
QNetworkRequest
.
HttpStatusCodeAttribute
)
status_code
=
reply
.
attribute
(
QNetworkRequest
.
HttpStatusCodeAttribute
)
if
status_code
==
200
:
if
status_code
==
200
:
strdata
=
bytes
(
reply
.
readAll
()).
decode
(
'
utf-8
'
)
strdata
=
bytes
(
reply
.
readAll
()).
decode
(
'
utf-8
'
)
...
@@ -106,7 +107,8 @@ class IdentitiesRegistry:
...
@@ -106,7 +107,8 @@ class IdentitiesRegistry:
timestamp
=
uid_data
[
"
meta
"
][
"
timestamp
"
]
timestamp
=
uid_data
[
"
meta
"
][
"
timestamp
"
]
identity_uid
=
uid_data
[
"
uid
"
]
identity_uid
=
uid_data
[
"
uid
"
]
identity
.
uid
=
identity_uid
identity
.
uid
=
identity_uid
identity
.
status
=
Identity
.
FOUND
identity
.
blockchain_state
=
BlockchainState
.
BUFFERED
identity
.
local_state
=
LocalState
.
PARTIAL
logging
.
debug
(
"
Lookup : found {0}
"
.
format
(
identity
))
logging
.
debug
(
"
Lookup : found {0}
"
.
format
(
identity
))
future_identity
.
set_result
(
True
)
future_identity
.
set_result
(
True
)
return
return
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment