mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 23:02:16 +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"
|
print "[!] File already exists, not copying"
|
||||||
else:
|
else:
|
||||||
if same_partition(oldfile, newpath):
|
if same_partition(oldfile, newpath):
|
||||||
print "[* Moving file]"
|
print "[*] Moving file"
|
||||||
try:
|
try:
|
||||||
shutil.rename(oldfile, newpath)
|
shutil.move(oldfile, newpath)
|
||||||
except:
|
except Exception, errormsg:
|
||||||
print "[!] Error moving file! %s" % (errormsg)
|
print "[!] Error moving file! %s" % (errormsg)
|
||||||
#end try
|
#end try
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user