This should not hide the real exception error message
This commit is contained in:
@@ -182,8 +182,8 @@ def rename(sourceFile, destinationFile):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
os.rename(join_path(get.installDIR(), sourceFile), join_path(get.installDIR(), baseDir, destinationFile))
|
os.rename(join_path(get.installDIR(), sourceFile), join_path(get.installDIR(), baseDir, destinationFile))
|
||||||
except OSError:
|
except OSError, e:
|
||||||
error(_('ActionsAPI [rename]: No such file or directory: %s') % (sourceFile))
|
error(_('ActionsAPI [rename]: %s: %s') % (e, sourceFile))
|
||||||
|
|
||||||
def dosed(sourceFiles, findPattern, replacePattern = ''):
|
def dosed(sourceFiles, findPattern, replacePattern = ''):
|
||||||
'''replaces patterns in sourceFiles'''
|
'''replaces patterns in sourceFiles'''
|
||||||
|
|||||||
Reference in New Issue
Block a user