Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Tezor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Tezor
Commits
9fccf8f3
Verified
Commit
9fccf8f3
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Ignore errors in app.ready()
parent
ae28154b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/tezor/apps.py
+6
-1
6 additions, 1 deletion
aleksis/apps/tezor/apps.py
with
6 additions
and
1 deletion
aleksis/apps/tezor/apps.py
+
6
−
1
View file @
9fccf8f3
from
django.apps
import
apps
from
django.apps
import
apps
from
django.db
import
OperationalError
from
aleksis.core.util.apps
import
AppConfig
from
aleksis.core.util.apps
import
AppConfig
from
aleksis.core.util.core_helpers
import
get_site_preferences
from
aleksis.core.util.core_helpers
import
get_site_preferences
...
@@ -25,7 +26,11 @@ class DefaultConfig(AppConfig):
...
@@ -25,7 +26,11 @@ class DefaultConfig(AppConfig):
for
app_config
in
apps
.
app_configs
.
values
():
for
app_config
in
apps
.
app_configs
.
values
():
if
hasattr
(
app_config
,
"
get_payment_variants
"
):
if
hasattr
(
app_config
,
"
get_payment_variants
"
):
variants
=
app_config
.
get_payment_variants
()
try
:
variants
=
app_config
.
get_payment_variants
()
except
OperationalError
:
# Non-fatal, database is not yet ready
continue
for
name
,
config
in
variants
.
items
():
for
name
,
config
in
variants
.
items
():
if
name
not
in
settings
.
PAYMENT_VARIANTS
:
if
name
not
in
settings
.
PAYMENT_VARIANTS
:
settings
.
PAYMENT_VARIANTS
[
name
]
=
config
settings
.
PAYMENT_VARIANTS
[
name
]
=
config
...
...
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