freemyipod r407 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r406‎ | r407 | r408 >
Date:05:48, 2 January 2011
Author:theseven
Status:new
Tags:
Comment:
embios.py: Error handling cosmetics
Modified paths:
  • /embios/trunk/tools/embios.py (modified) (history)

Diff [purge]

Index: embios/trunk/tools/embios.py
@@ -1068,7 +1068,7 @@
10691069 else: buffer = self._hexint(buffer)
10701070 buffsize = self._hexint(buffsize)
10711071 try: self.mkdir(remotepath)
1072 - except: pass
 1072+ except: self.logger.info(" failed\n")
10731073 pathlen = len(localpath)
10741074 for d in os.walk(localpath):
10751075 prefix = remotepath + "/" + d[0].replace("\\", "/")[pathlen:] + "/"
@@ -1075,7 +1075,7 @@
10761076 for dir in d[1]:
10771077 if dir != ".svn":
10781078 try: self.mkdir(prefix + dir)
1079 - except: pass
 1079+ except: self.logger.info(" failed\n")
10801080 for f in d[2]:
10811081 if not prefix.find("/.svn/") > -1:
10821082 self.put(d[0] + "/" + f, prefix + f, buffer, buffsize)