Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

Commit

Permalink
Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
TBK committed May 15, 2017
1 parent 9638b36 commit abb6882
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,8 +988,8 @@ async def deserialize_queue(self,
*,
dir=None) -> Player:
"""
Deserialize a saved queue for a server into a Player.
If no queue is saved, returns None.
Deserialize a saved queue for a server into a Player.
If no queue is saved, returns None.
"""

if playlist is None:
Expand Down
16 changes: 8 additions & 8 deletions musicbot/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ async def _download(self):

def get_ready_future(self):
"""
Returns a future that will fire when the song is ready to be played.
The future will either fire with the result (being the entry)
or an exception as to why the song download failed.
Returns a future that will fire when the song is ready to be played.
The future will either fire with the result (being the entry)
or an exception as to why the song download failed.
"""
future = asyncio.Future()
if self.is_downloaded:
Expand Down Expand Up @@ -268,19 +268,19 @@ async def _download(self):

# noinspection PyShadowingBuiltins
async def _really_download(self, *, hash=False):
LOG.info("Download started: %s", self.url)
LOG.info('Download started: %s', self.url)

try:
result = await self.playlist.downloader.extract_info(
self.playlist.loop, self.url, download=True)
except Exception as error:
raise ExtractionError(error)

LOG.info("Download complete: %s", self.url)
LOG.info('Download complete: %s', self.url)

if result is None:
LOG.critical("YTDL has failed, everyone panic")
raise ExtractionError("ytdl broke and hell if I know why")
LOG.critical('YTDL has failed, everyone panic')
raise ExtractionError('ytdl broke and hell if I know why')
# What the fuck do I do now?

self.filename = unhashed_fname = \
Expand Down Expand Up @@ -375,7 +375,7 @@ def _deserialize(cls, data, playlist=None):

return entry
except Exception as error:
LOG.error("Could not load %s", cls.__name__, exc_info=error)
LOG.error('Could not load %s', cls.__name__, exc_info=error)

# noinspection PyMethodOverriding
async def _download(self, *, fallback=False):
Expand Down

0 comments on commit abb6882

Please sign in to comment.