contrib/monitoring Applied flake8

This commit is contained in:
Lukas Molleman 2022-11-22 19:00:40 +01:00
parent 0b7baf4437
commit a9add384b7
1 changed files with 3 additions and 0 deletions

View File

@ -24,10 +24,12 @@ import sys
import platform
import os
def error(message):
print(message)
sys.exit(1)
def get_version_string(library_path):
try:
lib = ctypes.cdll.LoadLibrary(library_path)
@ -58,6 +60,7 @@ def get_version_string(library_path):
return version_str
if __name__ == '__main__':
if platform.system() == 'Linux':
default_lib = 'libfdb_c.so'