Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed May 2, 2021
1 parent 14acfbe commit 1bec8c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open_budget_data_api/main.py
Expand Up @@ -4,7 +4,7 @@
import urllib
import os
import xlsxwriter
import codecs
import codecs

from io import StringIO
from flask import Flask, request, abort, Response, send_file
Expand Down Expand Up @@ -46,7 +46,7 @@ def query():
sql = request.values.get('query')
try:
sql = codecs.decode(sql.encode('ascii'), 'base64').decode('utf8')
except:
except Exception:
pass
results = query_db(sql, max_rows=num_rows)
return jsonpify(results)
Expand Down

0 comments on commit 1bec8c0

Please sign in to comment.