fix: Handle error while session start (#12933)
- The occurs randomly at the time of boot
This commit is contained in:
parent
b59eceb9a6
commit
c28a7db70c
1 changed files with 1 additions and 1 deletions
|
|
@ -975,7 +975,7 @@ def get_pymodule_path(modulename, *joins):
|
|||
:param *joins: Join additional path elements using `os.path.join`."""
|
||||
if not "public" in joins:
|
||||
joins = [scrub(part) for part in joins]
|
||||
return os.path.join(os.path.dirname(get_module(scrub(modulename)).__file__), *joins)
|
||||
return os.path.join(os.path.dirname(get_module(scrub(modulename)).__file__ or ''), *joins)
|
||||
|
||||
def get_module_list(app_name):
|
||||
"""Get list of modules for given all via `app/modules.txt`."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue