<feed xmlns='http://www.w3.org/2005/Atom'>
<title>petthecord/src, branch v1.4.2</title>
<subtitle>pet discord users
</subtitle>
<id>http://git.nakidai.ru/petthecord/atom?h=v1.4.2</id>
<link rel='self' href='http://git.nakidai.ru/petthecord/atom?h=v1.4.2'/>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/'/>
<updated>2024-10-29T20:40:19+00:00</updated>
<entry>
<title>Possibly fix bug in GC</title>
<updated>2024-10-29T20:40:19+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-29T20:40:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=55ef8e5f692a1f7188263e861bc21cda2e8631e1'/>
<id>urn:sha1:55ef8e5f692a1f7188263e861bc21cda2e8631e1</id>
<content type='text'>
When I was checking log of this bot I've noticed that thing in gc loop

    Traceback (most recent call last):
      File "/var/lib/ptc/venv/lib/python3.10/site-packages/discord/client.py", line 449, in _run_event
        await coro(*args, **kwargs)
      File "/var/lib/ptc/venv/lib/python3.10/site-packages/petthecord/runner.py", line 57, in on_ready
        await petter.gc_loop()
      File "/var/lib/ptc/venv/lib/python3.10/site-packages/petthecord/cache.py", line 107, in gc_loop
        del self._cache[filename.split('_')[0]]
    KeyError: '...'

I don't really want to know why this error has occured, but IMO it's
something related to broken index.json. So to fix the bug I just wrapped
deleting action to try-except block which will ignore the KeyError
exception. TBH looks like a kludge, but as I said I don't want to get
into it :&gt;
</content>
</entry>
<entry>
<title>Refactor</title>
<updated>2024-10-28T12:55:04+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-28T12:55:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=baaf3995646630de931113d4c554fd4867977b5c'/>
<id>urn:sha1:baaf3995646630de931113d4c554fd4867977b5c</id>
<content type='text'>
- Move caching to another file
- Rename some files
- Make loggers look ok
</content>
</entry>
<entry>
<title>Do gc in a loop</title>
<updated>2024-10-27T19:58:48+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T19:58:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=4b2ddc03f1e35cb0dea51dc96a00fb0a0ca49031'/>
<id>urn:sha1:4b2ddc03f1e35cb0dea51dc96a00fb0a0ca49031</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Probably fix #1</title>
<updated>2024-10-27T19:58:23+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T19:58:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=6c0d85a696f5622a5959a49b6be4bb4c0a67393e'/>
<id>urn:sha1:6c0d85a696f5622a5959a49b6be4bb4c0a67393e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add logging</title>
<updated>2024-10-27T19:42:04+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T19:42:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=a42d6702222c344d1f68cfd5aafc1dfb0e0fc2a5'/>
<id>urn:sha1:a42d6702222c344d1f68cfd5aafc1dfb0e0fc2a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add origin parameter</title>
<updated>2024-10-27T18:33:15+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T18:33:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=38acd533869bdaac60af9636d087a2f9f9d59e0f'/>
<id>urn:sha1:38acd533869bdaac60af9636d087a2f9f9d59e0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove debug print</title>
<updated>2024-10-27T17:35:54+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T17:35:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=bb42cbadc78c81a185a6ebfbc32e5e34cb87f646'/>
<id>urn:sha1:bb42cbadc78c81a185a6ebfbc32e5e34cb87f646</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix typo</title>
<updated>2024-10-27T08:47:01+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T08:47:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=054e08a906c5f361f712a96c541a0530f79e3a40'/>
<id>urn:sha1:054e08a906c5f361f712a96c541a0530f79e3a40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add caching</title>
<updated>2024-10-27T08:43:22+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T08:43:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=5d7b44d0f8d5ac2a00c6a1fa16a4eaba3efe3b84'/>
<id>urn:sha1:5d7b44d0f8d5ac2a00c6a1fa16a4eaba3efe3b84</id>
<content type='text'>
Implement idea from
https://raw.githubusercontent.com/nakidai/cptc/d69da87a74ea1fc18b73ec7660dad7d590e28ddd/TODO
</content>
</entry>
<entry>
<title>Add discord command</title>
<updated>2024-09-14T11:25:55+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-09-14T11:25:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=3c241c7c97f2cc49eeecf7de74d5f8f7f794c73b'/>
<id>urn:sha1:3c241c7c97f2cc49eeecf7de74d5f8f7f794c73b</id>
<content type='text'>
</content>
</entry>
</feed>
