freemyipod r861 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r860‎ | r861 | r862 >
Date:22:23, 29 January 2012
Author:user890104
Status:new
Tags:
Comment:
libipodcrypto: removing a non-existent file throws an exception, and it's not needed in this particular case.
Modified paths:
  • /emcore/trunk/tools/libipodcrypto.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/libipodcrypto.py
@@ -148,11 +148,7 @@
149149 with open(infilepath, "rb") as infile:
150150 infiledata = infile.read()
151151
152 - try:
153 - outfiledata = function(infiledata)
154 - except:
155 - os.remove(outfilepath)
156 - raise
 152+ outfiledata = function(infiledata)
157153
158154 with open(outfilepath, "wb") as outfile:
159155 outfile.write(outfiledata)