mirror of
https://github.com/topjohnwu/Magisk
synced 2025-09-01 05:22:13 +00:00
Empty Exceptions
This commit is contained in:
6
build.py
6
build.py
@@ -60,7 +60,7 @@ config = {}
|
|||||||
def mv(source, target):
|
def mv(source, target):
|
||||||
try:
|
try:
|
||||||
shutil.move(source, target)
|
shutil.move(source, target)
|
||||||
except shutil.Error:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ def cp(source, target):
|
|||||||
try:
|
try:
|
||||||
shutil.copyfile(source, target)
|
shutil.copyfile(source, target)
|
||||||
vprint(f'cp: {source} -> {target}')
|
vprint(f'cp: {source} -> {target}')
|
||||||
except shutil.Error:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ def rm(file):
|
|||||||
def mkdir(path, mode=0o777):
|
def mkdir(path, mode=0o777):
|
||||||
try:
|
try:
|
||||||
os.mkdir(path, mode)
|
os.mkdir(path, mode)
|
||||||
except OSError:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user