Skip to content

Commit 8742068

Browse files
committed
fix crash
1 parent f3cd74d commit 8742068

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/romloader.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,14 @@ def main():
9292
path = '/romloader'
9393
romname = filename
9494
conn.MakeDir('/romloader')
95-
95+
9696
print("getting list of {path} to verify path exists".format(
9797
path=path
9898
))
99-
conn.List(path)
99+
try:
100+
conn.List(path)
101+
except:
102+
conn.List(path)
100103
print("copying rom to {fullpath}".format(
101104
fullpath=path + '/' + romname
102105
))

0 commit comments

Comments
 (0)