mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Fix create MacOS plist file
This commit is contained in:
parent
d779e72bcd
commit
773ee8664c
1 changed files with 9 additions and 9 deletions
|
@ -55,16 +55,16 @@ def set_startup():
|
|||
except OSError:
|
||||
return False
|
||||
|
||||
with open(plist_file_path, 'wb') as f:
|
||||
try:
|
||||
plistlib.dump(plist_dict, f)
|
||||
except AttributeError:
|
||||
plistlib.writePlist(plist_dict, f)
|
||||
except OSError as e:
|
||||
logger.error("Failed to create MacOS system startup plist file: %s", e)
|
||||
return False
|
||||
with open(plist_file_path, 'wb') as f:
|
||||
try:
|
||||
plistlib.dump(plist_dict, f)
|
||||
except AttributeError:
|
||||
plistlib.writePlist(plist_dict, f)
|
||||
except OSError as e:
|
||||
logger.error("Failed to create MacOS system startup plist file: %s", e)
|
||||
return False
|
||||
|
||||
return True
|
||||
return True
|
||||
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue