Skip to content

Fix monkey patch - #9

Merged
av-dev2 merged 6 commits into
version-16-hotfixfrom
fix_monkey_patch
Aug 23, 2026
Merged

Fix monkey patch#9
av-dev2 merged 6 commits into
version-16-hotfixfrom
fix_monkey_patch

Conversation

@av-dev2

@av-dev2 av-dev2 commented Aug 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

aakvatech and others added 6 commits August 23, 2026 12:58
…ite-less-build-monkey-patches-v16

fix: avoid monkey patch loading during site-less builds
…ulticurrency-bank-charges-group

fix: add dedicated group for multicurrency bank charges
The patched frappe.get_hooks loads monkey patches on every call, which
triggers frappe.get_installed_apps() and forces a DB connection. In
site-less contexts like `bench build`, no site is bound, so connect()
fails with "site must be fully initialized, db_name missing" — breaking
app installation during the asset build step.

Bail out of load_monkey_patches() when frappe.local.site is not set,
before marking patches as loaded, so the patched frappe.connect still
loads them once a real site connection is established.
@av-dev2
av-dev2 merged commit 02b8477 into version-16-hotfix Aug 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants