Skip to content

Commit

Permalink
fix(ci): Sonarqube issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Oct 20, 2023
1 parent c77d0a8 commit 18097e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
asset_name: area.apk

documentation-changelog:
runs-on: self-hosted
runs-on: ubuntu-latest
name: "Generate documentation changelog"
permissions:
contents: write
Expand Down
4 changes: 2 additions & 2 deletions backend/workers/linkedin/src/create_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def create_post():
AreaBackServiceStub(channel).OnReaction(
JobData(name="linkedin-create-post", identifier=args["identifier"], params=params))

except:
except Exception as e:
with grpc.insecure_channel(target) as channel:
AreaBackServiceStub(channel).OnError(
JobError(identifier=args["identifier"], error=str(sys.exc_info()[0]), isAuthError=False))
exit(1)
raise e
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
sonar.projectKey=RezaRahemtola_Area_AYsvKU32-JkUBlxngK-m

sonar.python.version=3.11

0 comments on commit 18097e3

Please sign in to comment.