Skip to content
Snippets Groups Projects
Commit 4a7c43a9 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

STY: fixed style

parent 5f2ca1dc
Branches
Tags
2 merge requests!57RELEASE 0.7.3,!47Refactored the plantuml module
Pipeline #20462 passed
...@@ -168,8 +168,6 @@ hide circle\n ...@@ -168,8 +168,6 @@ hide circle\n
else: else:
raise ValueError("Unknown style.") raise ValueError("Unknown style.")
if add_properties: if add_properties:
result += "package Properties #DDDDDD {\n" result += "package Properties #DDDDDD {\n"
for p in properties: for p in properties:
...@@ -381,6 +379,8 @@ def to_graphics(recordtypes: list[db.Entity], filename: str, ...@@ -381,6 +379,8 @@ def to_graphics(recordtypes: list[db.Entity], filename: str,
print("Executing:", cmd) print("Executing:", cmd)
if os.system(cmd) != 0: # TODO: replace with subprocess.run if os.system(cmd) != 0: # TODO: replace with subprocess.run
raise Exception("An error occured during the execution of plantuml. " raise Exception("An error occured during the execution of "
"plantuml. "
"Is plantuml installed?") "Is plantuml installed?")
shutil.copy(os.path.join(td, filename + "." + extension), output_dirname) shutil.copy(os.path.join(td, filename + "." + extension),
output_dirname)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment