Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_project(self, project_id):
try:
return Project.find(project_id)
except ResourceNotFound:
raise RedmineException(
"Project '%s' doesn't exist in Redmine" % project_id)
def get_project(self, project_id):
try:
return Project.find(project_id)
except ResourceNotFound:
raise RedmineException(
"Project '%s' doesn't exist in Redmine" % project_id)