Skip to content
Snippets Groups Projects
Commit 742b1312 authored by Ellis Percival's avatar Ellis Percival
Browse files

Make REQUIREMENTS in modules optional. #1

parent 3d12a901
Branches
Tags
No related merge requests found
......@@ -26,8 +26,10 @@ def on_disconnect(client, userdata, rc):
def install_missing_requirements(module):
try:
reqs = getattr(module, "REQUIREMENTS")
if reqs is None:
except AttributeError:
_LOG.info("Module %r has no extra requirements to install." % module)
return
import pkg_resources
installed = pkg_resources.WorkingSet()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment