akkornel / syncrepl

Python LDAP Syncrepl client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syncrepl_delete TypeError

matthewh opened this issue · comments

Is it safe to swap %d to %s?

  File "/usr/local/lib/python3.5/dist-packages/syncrepl_client/__init__.py", line 702, in poll
    all=1, timeout=3)
  File "/usr/local/lib/python3.5/dist-packages/ldap/syncrepl.py", line 417, in syncrepl_poll
    self.syncrepl_delete(sim.syncIdSet['syncUUIDs'])
  File "/usr/local/lib/python3.5/dist-packages/syncrepl_client/__init__.py", line 1012, in syncrepl_delete
    'does not exist!' % (uuid,)
TypeError: %d format: a number is required, not str

well an LDAP uuid is by definition a string so i'd say yes...

but if i replace it by %s here, it spits Attempted to delete UUID b from the database, but it does not exist! which shows that it might not be a correct uuid type ? or the wrong uuid object type ?

ok, got it, it's linked with #32