Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L LHCb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 197
    • Issues 197
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 50
    • Merge requests 50
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LHCbLHCb
  • LHCb
  • Merge requests
  • !3401

Better exception from PyConf.tonic configurable caching

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Rosen Matev requested to merge rm-tonic-exception into master Feb 07, 2022
  • Overview 1
  • Commits 1
  • Pipelines 5
  • Changes 1

When an exception occurs while caching is enabled, one gets a slightly misleading stacktrace such as the one below. This is now fixed (the first part is gone).

Traceback (most recent call last):
  File "/workspace/build/Gaudi/InstallArea/x86_64_v2-centos7-gcc11-opt/python/GaudiKernel/Configurable.py", line 512, in __setattr__
    super(Configurable, self).__setattr__(name, value)
AttributeError: 'Online__OutputAlg' object has no attribute 'FILE_fileNameFormat'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/build/Gaudi/InstallArea/x86_64_v2-centos7-gcc11-opt/bin/gaudirun.py", line 584, in <module>
    exec(o, g, l)
  File "<string>", line 1, in <module>
  File "/workspace/build/Gaudi/InstallArea/x86_64_v2-centos7-gcc11-opt/bin/gaudirun.py", line 543, in __call__
    importOptions(arg)
  File "/workspace/build/Gaudi/InstallArea/x86_64_v2-centos7-gcc11-opt/python/GaudiKernel/ProcessJobOptions.py", line 552, in importOptions
    _import_function_mapping[ext](optsfile)
  File "/workspace/build/Gaudi/InstallArea/x86_64_v2-centos7-gcc11-opt/python/GaudiKernel/ProcessJobOptions.py", line 486, in _import_python
    exec(code, {})
  File "/workspace/build/MooreOnline/MooreOnlineConf/tests/options/outputalg_file.py", line 17, in <module>
    output_alg.FILE_fileNameFormat = "output.raw"
  File "/workspace/build/Gaudi/InstallArea/x86_64_v2-centos7-gcc11-opt/python/GaudiKernel/Configurable.py", line 514, in __setattr__
    raise AttributeError(
AttributeError: Configurable 'Online__OutputAlg' does not have property 'FILE_fileNameFormat'.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: rm-tonic-exception