Commit c96ff195 authored by Luke Mewburn's avatar Luke Mewburn
Browse files

fix ruff check

parent 07481bcb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -348,7 +348,6 @@ def D45(t, context):
    return errors



def lintASN1File(asnFile, exceptions):
    errors = []
    suppressed = []
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ if __name__ == "__main__":
    errors = 0

    print("-------------------------------------------------")
    print(f"Linting XML / XSD files...")
    print("Linting XML / XSD files...")

    for f in files:
        new_errors = lint(f)
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ from xmlschema import XMLSchema, XMLSchemaParseError
def getError(e):
    try:
        return f"{etree_tostring(e.elem, e.namespaces, '  ', 20)} - {e.message}"
    except Exception as ex:
    except Exception:
        return repr(e)