Skip to content

Commit

Permalink
Fixed some flake warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
LordFckHelmchen committed Mar 8, 2021
1 parent 3728fbb commit 070351a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xpOptimizerResults.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ def __str__(self):
as_string = ""
for attr_name, _ in self:
as_string += f"\n## {attr_name}\n{getattr(self, attr_name)}\n"
return as_string
return as_string
2 changes: 1 addition & 1 deletion xpOptimizerService.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def optimize_xp():
# noinspection PyBroadException
try:
return dict(xpOptimizer.optimize_xp(json.loads(request.args["target_values"])))
except Exception as err:
except:
app.logger.error(f"Optimizer error for target value dict {request.args['target_values']}: "
f"{sys.exc_info()[0]}: {sys.exc_info()[1]}")
abort(500)

0 comments on commit 070351a

Please sign in to comment.