mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 06:57:57 +00:00
Add error handling for case where user does not have git installed (#3179)
This commit is contained in:
1 parent
090f4f4387
commit
5ecba6b13c
2 files changed
+9
No files matched your search
@@ -227,6 +227,9 @@ class PluginsRegistry:
|
||||
except subprocess.CalledProcessError as error: # pragma: no cover
|
||||
logger.error(f'Ran into error while trying to install plugins!\n{str(error)}')
|
||||
return False
|
||||
except FileNotFoundError: # pragma: no cover
|
||||
# System most likely does not have 'git' installed
|
||||
return False
|
||||
|
||||
logger.info(f'plugin requirements were run\n{output}')
|
||||
|
||||
|
||||
Reference in new issue
Block a user