Skip to content

Commit

Permalink
Merge pull request #37 from hhollenstain/6.0.5
Browse files Browse the repository at this point in the history
Adding Exception logging on queue loop for api errors
  • Loading branch information
hhollenstain authored May 31, 2020
2 parents a2995bd + a71b1e5 commit 371a120
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 202 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "pypi"
e1839a8 = {path = ".", editable = true}
tamago = {path = ".",editable = true}
fakah = {path = ".",editable = true}
autochannel = {path = ".",editable = true}
autochannel = {editable = true, path = "."}

[requires]
python_version = "3.6"
427 changes: 233 additions & 194 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion autochannel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
init - version info
"""
VERSION_INFO = (6, 0, 4)
VERSION_INFO = (6, 0, 5)
VERSION = '.'.join(str(c) for c in VERSION_INFO)
6 changes: 3 additions & 3 deletions autochannel/lib/plugins/autochannels.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ async def queue_loop(self):
guild=task['guild'],
)

except:
pass
except Exception as e:
LOG.error(e)

self.autochannel.loop.call_soon_threadsafe(self.next.set)
await self.next.wait()
Expand Down Expand Up @@ -183,7 +183,7 @@ async def manage_auto_voice_channels(self, autochannel, guild=None):
for channel in auto_channels:
q_object = {
'cat': cat,
'guild': server.name,
'guild': server.name,
'type': 'ac_delete_channel',
'force': True,
}
Expand Down
4 changes: 2 additions & 2 deletions autochannel/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def list_servers(client):
for server in client.guilds:
server_list.append(server.name)
bot_guild_count(len(server_list))
LOG.info(f'Current servers: {server_list}')
LOG.debug(f'Current servers: {server_list}')
await asyncio.sleep(600)

async def list_users(client):
Expand All @@ -149,5 +149,5 @@ async def list_users(client):
while not client.is_closed():
numb_of_clients = len(set(client.get_all_members()))
bot_user_count(numb_of_clients)
LOG.info(f'Number Of clients: {numb_of_clients}')
LOG.debug(f'Number Of clients: {numb_of_clients}')
await asyncio.sleep(600)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'aiomeasures',
'coloredlogs',
'dblpy',
'discord.py==1.2.5',
'discord.py==1.3.3',
'dblpy',
'flask_sqlalchemy',
'pip==18.0',
Expand Down

0 comments on commit 371a120

Please sign in to comment.