Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix error while using a subclass for queue
  • Loading branch information
Javinator9889 committed Feb 15, 2020
1 parent 446847a commit b8e3869
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion YouTubeMDBot/tests/identifier.py
Expand Up @@ -125,7 +125,8 @@ def find_metadata(self, future, downloader) -> Tuple[BytesIO, bytes, dict]:


def handle_error(exception):
raise exception()
raise RuntimeError("Catch exception while running a thread: "
+ str(exception))


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion YouTubeMDBot/utils/queue/cqueue.py
Expand Up @@ -20,7 +20,7 @@
from typing import Any
from typing import Optional

from multiprocessing import Queue
from multiprocessing.queues import Queue


class CQueue(Queue):
Expand Down

0 comments on commit b8e3869

Please sign in to comment.