Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
1a845523
Commit
1a845523
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
added exception to read/write set failure in attribute_wrapper set_comm_client function
parent
f6204563
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
2021 03 22 branched from master attribute wrapper
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/PCC.py
+4
-1
4 additions, 1 deletion
devices/PCC.py
devices/src/attribute_wrapper.py
+1
-3
1 addition, 3 deletions
devices/src/attribute_wrapper.py
with
5 additions
and
4 deletions
devices/PCC.py
+
4
−
1
View file @
1a845523
...
...
@@ -130,7 +130,10 @@ class PCC(hardware_device):
# map the attributes to the OPC ua comm client
for
i
in
self
.
attr_list
():
i
.
set_comm_client
(
self
.
OPCua_client
)
try
:
i
.
set_comm_client
(
self
.
OPCua_client
)
except
:
pass
self
.
OPCua_client
.
start
()
...
...
This diff is collapsed.
Click to expand it.
devices/src/attribute_wrapper.py
+
1
−
3
View file @
1a845523
...
...
@@ -138,6 +138,4 @@ class attribute_wrapper(attribute):
self
.
read_function
=
pass_func
self
.
write_function
=
pass_func
# raise Exception("Exception while setting comm_client read/write functions. using pass function instead. %s") from e
raise
Exception
(
"
Exception while setting comm_client read/write functions. using pass function instead. %s
"
)
from
e
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment