-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from srirams6/master
Better printing and PEP8.
- Loading branch information
Showing
4 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
class DirectoryAccessError(Exception): | ||
pass | ||
pass | ||
|
||
|
||
class DirectoryCreateError(Exception): | ||
pass | ||
pass | ||
|
||
|
||
class ImageDownloadError(Exception): | ||
status_code=0 | ||
def __init__(self, status_code=0): | ||
self.status_code = status_code | ||
status_code = 0 | ||
|
||
def __init__(self, status_code=0): | ||
self.status_code = status_code | ||
|
||
|
||
class ImageSizeError(Exception): | ||
image_size=0 | ||
def __init__(self, image_size): | ||
self.image_size = image_size | ||
image_size = 0 | ||
|
||
def __init__(self, image_size): | ||
self.image_size = image_size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters