Skip to content

Commit

Permalink
Fixed linting mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
victor5lm committed Sep 9, 2024
1 parent e55ea29 commit 1930cfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bu_isciii/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_service_paths(conf, type, info, archived_status):
"""
global_conf = conf.get_configuration("global")
service_path = None

try:
if type == "services_and_colaborations":
if archived_status == "archived_path":
Expand All @@ -228,11 +228,12 @@ def get_service_paths(conf, type, info, archived_status):
].lower(),
)
return service_path

except AttributeError:
stderr.print("[red]ERROR: the user associated with this service has no profile classification area selected in iskylims.isciii.es/admin. Please log in, go to the Profiles section and make sure every user has been assigned a profile classification area.")
sys.exit(1)


def get_sftp_folder(conf, resolution_info):
service_user = resolution_info["service_user_id"]["username"]
json_file = os.path.join(os.path.dirname(__file__), "templates", "sftp_user.json")
Expand Down

0 comments on commit 1930cfa

Please sign in to comment.