Skip to content

Commit d26fa80

Browse files
authored
Removed CR, change error catch to specific error
1 parent 2b50de7 commit d26fa80

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PyPortal_ViewMaster/viewmaster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
vfs = storage.VfsFat(sdcard)
2121
storage.mount(vfs, "/sd")
2222
IMAGE_DIRECTORY = "/sd/images"
23-
except Exception as e:
24-
print("No SD card, will only look on internal memory, {0}.".format(e.message))
23+
except OSerror:
24+
print("No SD card, will only look on internal memory")
2525

2626
def print_directory(path, tabs=0):
2727
for file in os.listdir(path):
@@ -50,7 +50,7 @@ def print_directory(path, tabs=0):
5050

5151
print_directory(IMAGE_DIRECTORY)
5252

53-
# Create the slideshow object that plays through once alphabetically.
53+
# Create the slideshow object that plays through once alphabetically
5454
slideshow = SlideShow(board.DISPLAY, None, folder=IMAGE_DIRECTORY, loop=True,
5555
order=PlayBackOrder.ALPHABETICAL, dwell=0)
5656
while True:

0 commit comments

Comments
 (0)