Skip to content
Snippets Groups Projects
Closed stem-1.4.1 doesn't like double-space in exit policy
  • View options
  • stem-1.4.1 doesn't like double-space in exit policy

  • View options
  • Closed Issue created by toralf
    ExitPolicy reject  *:*

    gives

        policy = controller.get_exit_policy()
      File "/usr/lib64/python3.4/site-packages/stem/control.py", line 414, in wrapped
        raise exc
      File "/usr/lib64/python3.4/site-packages/stem/control.py", line 409, in wrapped
        return func(self, *args, **kwargs)
      File "/usr/lib64/python3.4/site-packages/stem/control.py", line 1177, in get_exit_policy
        config_policy = stem.exit_policy.get_config_policy(policy, self.get_info('address', None))
      File "/usr/lib64/python3.4/site-packages/stem/exit_policy.py", line 154, in get_config_policy
        result.append(ExitPolicyRule(rule))
      File "/usr/lib64/python3.4/site-packages/stem/exit_policy.py", line 655, in __init__
        raise ValueError('An exit policy should have a space separating its accept/reject from the exit pattern: %s' % rule)
    ValueError: An exit policy should have a space separating its accept/reject from the exit pattern: reject  *:

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading