Skip to content

Commit

Permalink
Testing, installing latest version of downloader from git.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 19, 2024
1 parent 1f97e8d commit caa4d54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wis2downloader/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def add_subscription():
try:
with open(CONFIG['mqtt_session_info'], 'w') as fh:
json.dump(session_info, fh)
except Exception:
abort(500, "Internal server error")
except Exception as e:
abort(500, f"Internal server error: {e}")

response = jsonify(subs[topic])
response.status_code = 201
Expand Down Expand Up @@ -237,6 +237,7 @@ def delete_subscription(topic):
mimetype="application/json")


@app.route('')
@app.route('/swagger')
def render_swagger():
return render_template('swagger.html', )
Expand Down

0 comments on commit caa4d54

Please sign in to comment.