Skip to content

Commit cd5fbbb

Browse files
committed
Minor fixes
1 parent 27b7ae8 commit cd5fbbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/WrapDelphiWindows.pas

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class function TWindowsRegistration.SetProcessDpiAwareness_Wrapper(PySelf,
185185
{$ENDIF DELPHI11_OR_HIGHER}
186186

187187
initialization
188-
RegisteredUnits.Add( TWindowsRegistration.Create );
188+
RegisteredUnits.Add(TWindowsRegistration.Create);
189189

190190
{$IFDEF MSWINDOWS}
191191
{$IFDEF DELPHI11_OR_HIGHER}

Source/vcl/WrapVclForms.pas

+2-2
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ function TPyDelphiCustomForm.LoadProps_Wrapper(args: PPyObject): PPyObject;
591591
Exit(GetPythonEngine().ReturnFalse);
592592
except
593593
on E: Exception do
594-
GetPythonEngine().PyErr_SetString(PyExc_RuntimeError^,
595-
PAnsiChar(AnsiString(E.Message)));
594+
with GetPythonEngine() do
595+
PyErr_SetString(PyExc_RuntimeError^, PAnsiChar(AnsiString(E.Message)));
596596
end;
597597
Result := nil;
598598
end;

0 commit comments

Comments
 (0)