Skip to content

Commit

Permalink
Merge pull request gcgarner#220 from jamesmyatt/fixes-001
Browse files Browse the repository at this point in the history
Fixes for missing optional dependencies
  • Loading branch information
Slyke authored Jan 24, 2021
2 parents 99c9cf9 + a9c40ff commit 63a54aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/menu_main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3

#!/usr/bin/python3
from blessed import Terminal
import sys
import subprocess
Expand Down Expand Up @@ -299,6 +298,7 @@ def checkDockerVersion():
currentDockerVersion = currentDockerVersion.decode("utf-8").rstrip().replace('"', '')
except Exception as err:
print("Error attempting to run docker command:", err)
currentDockerVersion = ""

return checkVersion(requiredDockerVersion, currentDockerVersion)

Expand Down
7 changes: 4 additions & 3 deletions scripts/python_deps_check.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/python3
import sys

if sys.argv[1] == "--pyyaml-version":
Expand All @@ -7,7 +8,7 @@
sys.exit(0)
except SystemExit:
sys.exit(0)
except:
except Exception:
print("could not get pyyaml version")
sys.exit(3)

Expand All @@ -18,7 +19,7 @@
sys.exit(0)
except SystemExit:
sys.exit(0)
except:
except Exception:
print("could not get ruamel.yaml version")
sys.exit(3)

Expand All @@ -29,6 +30,6 @@
sys.exit(0)
except SystemExit:
sys.exit(0)
except:
except Exception:
print("could not get blessed version")
sys.exit(3)

0 comments on commit 63a54aa

Please sign in to comment.