File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ def set_smbios(self) -> None:
190190 if self .model not in model_array .NoAGPMSupport :
191191 new_agpm_ls = Path (self .constants .agpm_contents_folder ) / Path ("Info.plist" )
192192 agpm_config = plistlib .load (Path (new_agpm_ls ).open ("rb" ))
193- agpm_config ["IOKitPersonalities" ]["AGPM" ]["Machines" ][self .spoofed_board ] = agpm_config ["IOKitPersonalities" ]["AGPM" ]["Machines" ].pop (self .model )
193+ try :
194+ agpm_config ["IOKitPersonalities" ]["AGPM" ]["Machines" ][self .spoofed_board ] = agpm_config ["IOKitPersonalities" ]["AGPM" ]["Machines" ].pop (self .model )
195+ except :
196+ return
194197 if self .model == "MacBookPro6,2" :
195198 # Force G State to not exceed moderate state
196199 # Ref: https://github.com/fabioiop/MBP-2010-GPU-Panic-fix
Original file line number Diff line number Diff line change @@ -116,17 +116,17 @@ def generate_log(process: subprocess.CompletedProcess) -> str:
116116 ...
117117 """
118118 output = trans ["Subprocess failed." ]+ "\n "
119- output += trans ["Command: {0}" ].format (process .args )+ "\n "
120- output += trans ["Return Code: {0}" ].format (process .returncode )+ "\n "
119+ output += trans [" Command: {0}" ].format (process .args )+ "\n "
120+ output += trans [" Return Code: {0}" ].format (process .returncode )+ "\n "
121121 _returned_error = __resolve_privileged_helper_errors (process .returncode )
122122 if _returned_error :
123123 output += trans [" Likely Enum: {0}" ].format (_returned_error )+ "\n "
124- output += trans ["Standard Output:" ]+ "\n "
124+ output += trans [" Standard Output:" ]+ "\n "
125125 if process .stdout :
126126 output += __format_output (process .stdout .decode ("utf-8" ))
127127 else :
128128 output += trans [" None" ]+ "\n "
129- output += trans ["Standard Error:" ]+ "\n "
129+ output += trans [" Standard Error:" ]+ "\n "
130130 if process .stderr :
131131 output += __format_output (process .stderr .decode ("utf-8" ))
132132 else :
You can’t perform that action at this time.
0 commit comments