Skip to content

Commit

Permalink
separate out classad import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Oct 3, 2024
1 parent 3ca712e commit 2469ee0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iceprod/server/data/condor_transfer_plugins/gsiftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
by copying them from the path indicated to a job's working directory.
"""

import classad
import glob
import os
import sys
Expand All @@ -19,6 +18,12 @@
EXIT_SUCCESS = 0
EXIT_FAILURE = 1
EXIT_AUTHENTICATION_REFRESH = 2
EXIT_IMPORT_ERROR = 3

try:
import classad
except ImportError:
sys.exit(EXIT_IMPORT_ERROR)


def print_help(stream=sys.stderr):
Expand Down

0 comments on commit 2469ee0

Please sign in to comment.