Skip to content

Commit dffbe0a

Browse files
committed
Fix bug with setupassistant stage and just print the errors if we cant pass to NSLog
1 parent f0990da commit dffbe0a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

payload/Library/installapplications/installapplications.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ def deplog(text):
5454

5555

5656
def iaslog(text):
57-
NSLog('[InstallApplications] ' + text)
57+
try:
58+
NSLog('[InstallApplications] ' + text)
59+
except Exception:
60+
print(text)
61+
pass
5862

5963

6064
def getconsoleuser():
@@ -699,7 +703,7 @@ def main():
699703
if stage == 'setupassistant':
700704
iaslog('Detected setupassistant and user script. '
701705
'User scripts cannot work in setupassistant stage! '
702-
'Removing %s') % path
706+
'Removing %s' % (path))
703707
os.remove(path)
704708
pass
705709
if 'url' in item:

0 commit comments

Comments
 (0)