<feed xmlns='http://www.w3.org/2005/Atom'>
<title>petthecord, 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:47:31+00:00</updated>
<entry>
<title>Bump to v1.4.2</title>
<updated>2024-10-29T20:47:31+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-29T20:47:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=0bb56522b506d3014b178fe73bd5db6d6cc680ad'/>
<id>urn:sha1:0bb56522b506d3014b178fe73bd5db6d6cc680ad</id>
<content type='text'>
</content>
</entry>
<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>Bump to v1.4.1</title>
<updated>2024-10-28T12:58:27+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-28T12:58:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=dadf4304f5a796db79f62ebecf08397436b7058f'/>
<id>urn:sha1:dadf4304f5a796db79f62ebecf08397436b7058f</id>
<content type='text'>
</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>Bump to v1.4.0</title>
<updated>2024-10-27T20:00:57+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T20:00:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=94f682c11acbda7af6ee23eafa7db515c8d71ae4'/>
<id>urn:sha1:94f682c11acbda7af6ee23eafa7db515c8d71ae4</id>
<content type='text'>
</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 cache folder</title>
<updated>2024-10-27T17:36:45+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-27T17:36:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=d87503d0242737c4514c4b15849884138f5a48f2'/>
<id>urn:sha1:d87503d0242737c4514c4b15849884138f5a48f2</id>
<content type='text'>
</content>
</entry>
</feed>
