Skip to content

Commit

Permalink
Merge pull request #145 from guzman-raphael/fix-instant-token
Browse files Browse the repository at this point in the history
Fix linting issues
  • Loading branch information
yambottle authored Nov 4, 2022
2 parents 35234ae + 8cc966a commit 4ad1930
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pharus/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def login() -> dict:
else:
raise e
return dict(**auth_info)
except Exception as e:
except Exception:
return traceback.format_exc(), 500


Expand Down Expand Up @@ -345,7 +345,7 @@ def schema(connection: dj.Connection) -> dict:
try:
schemas_name = _DJConnector._list_schemas(connection)
return dict(schemaNames=schemas_name)
except Exception as e:
except Exception:
return traceback.format_exc(), 500


Expand Down Expand Up @@ -422,7 +422,7 @@ def table(
try:
tables_dict_list = _DJConnector._list_tables(connection, schema_name)
return dict(tableTypes=tables_dict_list)
except Exception as e:
except Exception:
return traceback.format_exc(), 500


Expand Down Expand Up @@ -744,23 +744,23 @@ def record(
return dict(
recordHeader=record_header, records=table_tuples, totalCount=total_count
)
except Exception as e:
except Exception:
return traceback.format_exc(), 500
elif request.method == "POST":
try:
_DJConnector._insert_tuple(
connection, schema_name, table_name, request.json["records"]
)
return "Insert Successful"
except Exception as e:
except Exception:
return traceback.format_exc(), 500
elif request.method == "PATCH":
try:
_DJConnector._update_tuple(
connection, schema_name, table_name, request.json["records"]
)
return "Update Successful"
except Exception as e:
except Exception:
return traceback.format_exc(), 500
elif request.method == "DELETE":
try:
Expand Down Expand Up @@ -791,7 +791,7 @@ def record(
),
409,
)
except Exception as e:
except Exception:
return traceback.format_exc(), 500


Expand Down Expand Up @@ -874,7 +874,7 @@ def definition(
connection, schema_name, table_name
)
return table_definition
except Exception as e:
except Exception:
return traceback.format_exc(), 500


Expand Down Expand Up @@ -1053,7 +1053,7 @@ def attribute(
attributeHeaders=attributes_meta["attribute_headers"],
attributes=attributes_meta["attributes"],
)
except Exception as e:
except Exception:
return traceback.format_exc(), 500


Expand Down Expand Up @@ -1160,7 +1160,7 @@ def dependency(
),
)
return dict(dependencies=dependencies)
except Exception as e:
except Exception:
return traceback.format_exc(), 500


Expand Down

0 comments on commit 4ad1930

Please sign in to comment.