Skip to content

Commit

Permalink
Merge pull request #222 from PanDAWMS/zyang_dev
Browse files Browse the repository at this point in the history
fix the deprecated numpy type unicode for job page
  • Loading branch information
tkorchug authored Oct 26, 2023
2 parents 7806409 + f93dc3d commit cf2d485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/libs/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def getErrorDescription(job, mode='html', provideProcessedCodes = False, **kwarg
errorCodes = get_job_error_desc()

if 'metastruct' in job:
if type(job['metastruct']) is np.unicode:
if type(job['metastruct']) is str:
try:
meta = json.loads(job['metastruct'])
except:
Expand Down Expand Up @@ -201,4 +201,4 @@ def get_job_errors(pandaids):
for job in jobs:
errors_dict[job['pandaid']] = errorInfo(job)

return errors_dict
return errors_dict

0 comments on commit cf2d485

Please sign in to comment.