Skip to content

Commit

Permalink
fix adbexceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tianjos committed Sep 29, 2020
1 parent 1fdc737 commit 86c0a74
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions aioadb/adbexceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class BaseException(Exception):
'''Base exception class'''
pass


class SyncError(BaseException):
'''Base sync exception class'''
pass


class StartSyncError(SyncError):
'''Raised when couldn't start sync'''
pass


class PushSyncError(SyncError):
'''Raised when couldn't complete push sync'''
pass
2 changes: 1 addition & 1 deletion aioadb/adbsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections import namedtuple
from functools import partial

from app.asyncdb.exceptions import PushSyncError, StartSyncError
from .adbexceptions import PushSyncError, StartSyncError


FileInfo = namedtuple("FileInfo", ['mode', 'size', 'mtime', 'name'])
Expand Down

0 comments on commit 86c0a74

Please sign in to comment.