Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Logged in as
- matthileo
- ------
- Tuned in to Matthileo
- ---------------------
- Innerpartysystem - American Trash
- Switchfoot - Stars
- Murray Gold - All the Strange, Strange Creatures (From "Doctor Who: Series 3")
- Murray Gold - A Pressing Need to Save the World
- ^CTraceback (most recent call last):
- File "lastfm-bot.py", line 108, in <module>
- bot.loop.run_until_complete(bot.start(bot_token, bot=False))
- File "/usr/local/lib/python3.5/asyncio/base_events.py", line 375, in run_until_complete
- self.run_forever()
- File "/usr/local/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
- self._run_once()
- File "/usr/local/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
- handle._run()
- File "/usr/local/lib/python3.5/asyncio/events.py", line 125, in _run
- self._callback(*self._args)
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
- result = coro.send(None)
- File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 307, in _run_event
- yield from getattr(self, event)(*args, **kwargs)
- File "lastfm-bot.py", line 29, in on_ready
- await playing()
- File "lastfm-bot.py", line 66, in playing
- time.sleep(10)
- KeyboardInterrupt
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "lastfm-bot.py", line 110, in <module>
- bot.loop.run_until_complete(bot.logout())
- File "/usr/local/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
- return future.result()
- File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
- raise self._exception
- File "/usr/local/lib/python3.5/site-packages/discord/gateway.py", line 76, in run
- f.result()
- File "/usr/local/lib/python3.5/concurrent/futures/_base.py", line 405, in result
- return self.__get_result()
- File "/usr/local/lib/python3.5/concurrent/futures/_base.py", line 357, in __get_result
- raise self._exception
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
- result = coro.send(None)
- File "/usr/local/lib/python3.5/site-packages/discord/gateway.py", line 403, in send_as_json
- yield from super().send(utils.to_json(data))
- File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 309, in send
- yield from self.ensure_open()
- File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 400, in ensure_open
- self.worker_task, 3 * self.timeout, loop=self.loop)
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 392, in wait_for
- return fut.result()
- File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
- raise self._exception
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
- result = coro.send(None)
- File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 426, in logout
- yield from self.close()
- File "/usr/local/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 283, in close
- yield from super().close()
- File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 477, in close
- yield from self.ws.close()
- File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 241, in close
- self.worker_task, self.timeout, loop=self.loop)
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 392, in wait_for
- return fut.result()
- File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
- raise self._exception
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 241, in _step
- result = coro.throw(exc)
- File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 413, in run
- msg = yield from self.read_message()
- File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 435, in read_message
- frame = yield from self.read_data_frame(max_size=self.max_size)
- File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 490, in read_data_frame
- frame = yield from self.read_frame(max_size)
- File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 525, in read_frame
- self.reader.readexactly, is_masked, max_size=max_size)
- File "/usr/local/lib/python3.5/site-packages/websockets/framing.py", line 80, in read_frame
- data = yield from reader(2)
- File "/usr/local/lib/python3.5/asyncio/streams.py", line 670, in readexactly
- block = yield from self.read(n)
- File "/usr/local/lib/python3.5/asyncio/streams.py", line 627, in read
- yield from self._wait_for_data('read')
- File "/usr/local/lib/python3.5/asyncio/streams.py", line 457, in _wait_for_data
- yield from self._waiter
- File "/usr/local/lib/python3.5/asyncio/futures.py", line 361, in __iter__
- yield self # This tells Task to wait for completion.
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
- future.result()
- File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
- raise self._exception
- File "/usr/local/lib/python3.5/asyncio/selector_events.py", line 707, in write
- n = self._sock.send(data)
- BrokenPipeError: [Errno 32] Broken pipe
- Unclosed client session
- client_session: <aiohttp.client.ClientSession object at 0x7f4a05e2ab00>
- Task exception was never retrieved
- future: <Task finished coro=<_run_event() done, defined at /usr/local/lib/python3.5/site-packages/discord/client.py:304> exception=KeyboardInterrupt()>
- Traceback (most recent call last):
- File "lastfm-bot.py", line 108, in <module>
- bot.loop.run_until_complete(bot.start(bot_token, bot=False))
- File "/usr/local/lib/python3.5/asyncio/base_events.py", line 375, in run_until_complete
- self.run_forever()
- File "/usr/local/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
- self._run_once()
- File "/usr/local/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
- handle._run()
- File "/usr/local/lib/python3.5/asyncio/events.py", line 125, in _run
- self._callback(*self._args)
- File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
- result = coro.send(None)
- File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 307, in _run_event
- yield from getattr(self, event)(*args, **kwargs)
- File "lastfm-bot.py", line 29, in on_ready
- await playing()
- File "lastfm-bot.py", line 66, in playing
- time.sleep(10)
- KeyboardInterrupt
- matt@katzmatt:~$ python3.5 lastfm-bot.py
- ^CTask was destroyed but it is pending!
- task: <Task pending coro=<ConnectionState._delay_ready() running at /usr/local/lib/python3.5/site-packages/discord/state.py:190> wait_for=<Future pending cb=[Task._wakeup()]>>
Advertisement
Add Comment
Please, Sign In to add comment