Skip to content

Commit

Permalink
Merge pull request #3174 from Alex-developer/Point-Release-4
Browse files Browse the repository at this point in the history
Fixes for Bookworm and pi 5
  • Loading branch information
Alex-developer authored Dec 10, 2023
2 parents 21966eb + 9dd8af1 commit 1676913
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ install_overlay()
check_success $? "${PKGs} install failed" "${TMP}" "${DEBUG}"
[[ $? -ne 0 ]] && exit_with_image 1 "${STATUS_ERROR}" "${PKGs} install failed."

python3 -m venv "${ALLSKY_HOME}/venv"
python3 -m venv "${ALLSKY_HOME}/venv" --system-site-packages
#shellcheck disable=SC1090,SC1091
source "${ALLSKY_HOME}/venv/bin/activate"
fi
Expand Down
6 changes: 4 additions & 2 deletions scripts/flow-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,17 @@ def signalHandler(sig, frame):

if shared.flow[shared.step]["enabled"] and method in globals():
startTime = datetime.now()

result = False

arguments = {}
if 'arguments' in shared.flow[shared.step]['metadata']:
arguments = shared.flow[shared.step]['metadata']['arguments']

try:
result = globals()[method](arguments, shared.args.event)
except Exception as e:
shared.log(0,"ERROR: {}".format(e))
eType, eObject, eTraceback = sys.exc_info()
shared.log(0, f"ERROR: Module {shared.flow[shared.step]['module']} failed on line {eTraceback.tb_lineno} - {e}")

endTime = datetime.now()
elapsedTime = (((endTime - startTime).total_seconds()) * 1000) / 1000
Expand Down

0 comments on commit 1676913

Please sign in to comment.