Skip to content

watch() raises KeyError #45

Description

@Henddher

STEPS TO REPRODUCE:

Using https://github.com/buguroo/pyknow/blob/develop/docs/examples/maximum.ipynb

watch(watchers.RULES, watchers.FACTS, watchers.ACTIVATIONS)
m.run()
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-4-b1cd45e85340> in <module>
----> 1 watch(watchers.RULES, watchers.FACTS, watchers.ACTIVATIONS)
      2 m.run()

~/Documents/github/pyknow/pyknow/pyknow/watchers.py in watch(level, *what)
     39 
     40     for watcher_name in what:
---> 41         watcher = globals()[watcher_name]
     42         watcher.setLevel(level)
     43 

KeyError: <Logger pyknow.watchers.RULES (WARNING)>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions