mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 14:52:17 +00:00
Fixed typo in info message, fixed file moving and error handling
This commit is contained in:
@@ -193,10 +193,10 @@ def main():
|
||||
print "[!] File already exists, not copying"
|
||||
else:
|
||||
if same_partition(oldfile, newpath):
|
||||
print "[* Moving file]"
|
||||
print "[*] Moving file"
|
||||
try:
|
||||
shutil.rename(oldfile, newpath)
|
||||
except:
|
||||
shutil.move(oldfile, newpath)
|
||||
except Exception, errormsg:
|
||||
print "[!] Error moving file! %s" % (errormsg)
|
||||
#end try
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user