Skip to content

Commit

Permalink
Return "" instead of None for consistency of return type
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Muenker <mail@chipmuenk.de>
  • Loading branch information
chipmuenk committed May 9, 2024
1 parent 4a85bc1 commit fe6e07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfda/libs/pyfda_lib.py
Expand Up @@ -190,7 +190,7 @@ def mod_version(mod: str = "") -> str:
if mod in MODULES:
return LooseVersion(list(MODULES[mod].values())[0])
else:
return None
return ""
else:
v_md = ""
with open(os.path.join(dirs.INSTALL_DIR, "module_versions.md"), 'r') as f:
Expand Down

0 comments on commit fe6e07f

Please sign in to comment.