Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jussi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
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
Show more breadcrumbs
hive
jussi
Commits
c07395d2
Commit
c07395d2
authored
1 year ago
by
Gandalf
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of annoying error message if jrpc_block_num is None
parent
3bb69719
No related branches found
No related tags found
1 merge request
!11
Minor maintenance changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jussi/cache/utils.py
+2
-0
2 additions, 0 deletions
jussi/cache/utils.py
with
2 additions
and
0 deletions
jussi/cache/utils.py
+
2
−
0
View file @
c07395d2
...
...
@@ -31,6 +31,8 @@ def irreversible_ttl(jsonrpc_response: dict=None,
return
TTL
.
NO_CACHE
try
:
jrpc_block_num
=
block_num_from_jsonrpc_response
(
jsonrpc_response
)
if
jrpc_block_num
is
None
:
return
TTL
.
NO_CACHE
if
jrpc_block_num
>
last_irreversible_block_num
:
return
TTL
.
EXTENDED_TTL
else
:
...
...
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