Skip to content

Commit 4ad1930

Browse files
authored
Merge pull request #145 from guzman-raphael/fix-instant-token
Fix linting issues
2 parents 35234ae + 8cc966a commit 4ad1930

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pharus/server.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def login() -> dict:
283283
else:
284284
raise e
285285
return dict(**auth_info)
286-
except Exception as e:
286+
except Exception:
287287
return traceback.format_exc(), 500
288288

289289

@@ -345,7 +345,7 @@ def schema(connection: dj.Connection) -> dict:
345345
try:
346346
schemas_name = _DJConnector._list_schemas(connection)
347347
return dict(schemaNames=schemas_name)
348-
except Exception as e:
348+
except Exception:
349349
return traceback.format_exc(), 500
350350

351351

@@ -422,7 +422,7 @@ def table(
422422
try:
423423
tables_dict_list = _DJConnector._list_tables(connection, schema_name)
424424
return dict(tableTypes=tables_dict_list)
425-
except Exception as e:
425+
except Exception:
426426
return traceback.format_exc(), 500
427427

428428

@@ -744,23 +744,23 @@ def record(
744744
return dict(
745745
recordHeader=record_header, records=table_tuples, totalCount=total_count
746746
)
747-
except Exception as e:
747+
except Exception:
748748
return traceback.format_exc(), 500
749749
elif request.method == "POST":
750750
try:
751751
_DJConnector._insert_tuple(
752752
connection, schema_name, table_name, request.json["records"]
753753
)
754754
return "Insert Successful"
755-
except Exception as e:
755+
except Exception:
756756
return traceback.format_exc(), 500
757757
elif request.method == "PATCH":
758758
try:
759759
_DJConnector._update_tuple(
760760
connection, schema_name, table_name, request.json["records"]
761761
)
762762
return "Update Successful"
763-
except Exception as e:
763+
except Exception:
764764
return traceback.format_exc(), 500
765765
elif request.method == "DELETE":
766766
try:
@@ -791,7 +791,7 @@ def record(
791791
),
792792
409,
793793
)
794-
except Exception as e:
794+
except Exception:
795795
return traceback.format_exc(), 500
796796

797797

@@ -874,7 +874,7 @@ def definition(
874874
connection, schema_name, table_name
875875
)
876876
return table_definition
877-
except Exception as e:
877+
except Exception:
878878
return traceback.format_exc(), 500
879879

880880

@@ -1053,7 +1053,7 @@ def attribute(
10531053
attributeHeaders=attributes_meta["attribute_headers"],
10541054
attributes=attributes_meta["attributes"],
10551055
)
1056-
except Exception as e:
1056+
except Exception:
10571057
return traceback.format_exc(), 500
10581058

10591059

@@ -1160,7 +1160,7 @@ def dependency(
11601160
),
11611161
)
11621162
return dict(dependencies=dependencies)
1163-
except Exception as e:
1163+
except Exception:
11641164
return traceback.format_exc(), 500
11651165

11661166

0 commit comments

Comments
 (0)