Changeset 331 for devel/5.X/pbs.py


Ignore:
Timestamp:
03/09/15 23:06:35 (9 years ago)
Author:
bas
Message:

use the standard error file from pbs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/5.X/pbs.py

    r327 r331  
    841841TRUE = _pbs.TRUE
    842842FALSE = _pbs.FALSE
     843PBSE_TOTAL_CEILING = _pbs.PBSE_TOTAL_CEILING
     844PBSE_ = _pbs.PBSE_
     845PBSE_NONE = _pbs.PBSE_NONE
     846
     847def pbse_to_txt(*args):
     848  return _pbs.pbse_to_txt(*args)
     849pbse_to_txt = _pbs.pbse_to_txt
     850
     851def pbs_strerror(*args):
     852  return _pbs.pbs_strerror(*args)
     853pbs_strerror = _pbs.pbs_strerror
    843854#  PBS python interface
    844855#  Author: Bas van der Vlies <bas.vandervlies@surfsara.nl>
     
    10801091  """
    10811092  e = get_error()
    1082   if errors_txt.has_key(e):
    1083      return (e, errors_txt[e])
    1084   else:
    1085      return (e, "Could not find a text for this error, uhhh")
     1093  return (e, pbs_strerror(e))
     1094#     return (e, errors_txt[e])
     1095#  else:
     1096#     return (e, "Could not find a text for this error, uhhh")
    10861097
    10871098# This file is compatible with both classic and new-style classes.
Note: See TracChangeset for help on using the changeset viewer.