diff --git a/src/backend/InvenTree/plugin/installer.py b/src/backend/InvenTree/plugin/installer.py index ef689cf317..4069a4234a 100644 --- a/src/backend/InvenTree/plugin/installer.py +++ b/src/backend/InvenTree/plugin/installer.py @@ -265,9 +265,7 @@ def install_plugin( if url: # VCS based install - this can just be a VCS reference - if True in [ - identifier in url for identifier in ['git+https', 'hg+https', 'svn+svn'] - ]: + if url.startswith(('git+https://', 'hg+https://', 'svn+svn://')): # using a VCS provider package_ref = f'{packagename}@{url}' if packagename else url # http based index reference