diff --git a/python_lib/qss_compiler/compile.py b/python_lib/qss_compiler/compile.py index 4e6cb262b..2944370e6 100644 --- a/python_lib/qss_compiler/compile.py +++ b/python_lib/qss_compiler/compile.py @@ -315,7 +315,7 @@ def compile(self) -> Union[bytes, str, None]: diag.message, diagnostics, return_diagnostics=self.return_diagnostics, - ) + ) if not success: raise exceptions.QSSCompilationFailure( diff --git a/python_lib/qss_compiler/lib_enums.cpp b/python_lib/qss_compiler/lib_enums.cpp index ba58df403..1ed08e84c 100644 --- a/python_lib/qss_compiler/lib_enums.cpp +++ b/python_lib/qss_compiler/lib_enums.cpp @@ -43,8 +43,7 @@ void addErrorCategory(py::module &m) { qssc::ErrorCategory::QSSLinkInvalidPatchTypeError) .value("QSSControlSystemResourcesExceeded", qssc::ErrorCategory::QSSControlSystemResourcesExceeded) - .value("QSSUnsupportedQASM3", - qssc::ErrorCategory::QSSUnsupportedQASM3) + .value("QSSUnsupportedQASM3", qssc::ErrorCategory::QSSUnsupportedQASM3) .value("UncategorizedError", qssc::ErrorCategory::UncategorizedError) .export_values(); }