You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseConfigException('config.serve_web: {} must be a {} URL but was {}'.format(label, ' or '.join(repr_no_string_tag(s+':') forsinallowed_schemes), repr_no_string_tag(url_value)))
205
+
raiseConfigException('config.serve_web: {} must be a {} URL but was {}'.format(label, ' or '.join(repr_no_string_tag(six.ensure_str(s)+':') forsinallowed_schemes), repr_no_string_tag(url_value)))
206
206
207
207
# Ensure that there are no path components. There are two reasons for this:
'The following libraries/programs are not installed correctly:\n\t<dep name> (Check: shinysdr.i.test_dependencies_cases.imports failed to import (No module named nonexistent_module_in_dep).)\nPlease (re)install current versions.')
48
48
else:
49
49
self.assertEqual(self.t.report(),
50
-
'The following libraries/programs are not installed correctly:\n\t<dep name> (Check: shinysdr.i.test_dependencies_cases.imports failed to import (No module named \'shinysdr.test.nonexistent_module_in_dep\').)\nPlease (re)install current versions.')
50
+
'The following libraries/programs are not installed correctly:\n\t<dep name> (Check: shinysdr.i.test_dependencies_cases.imports failed to import (No module named \'shinysdr.nonexistent_module_in_dep\').)\nPlease (re)install current versions.')
Copy file name to clipboardExpand all lines: shinysdr/plugins/osmosdr.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,8 @@ def __repr__(self):
115
115
116
116
defprofile_from_device_string(device_string):
117
117
# TODO: The input is actually an "args" string, which contains multiple devices space-separated. We should support this, but it is hard because osmosdr does not export the internal args_to_vector function and parsing it ourselves would need to be escaping-aware.
# osmosdr.source doesn't throw an exception, allegedly because gnuradio can't handle it in a hier_block2 initializer. But we want to fail understandably, so recover by detecting it (sample rate = 0, which is otherwise nonsense)
238
238
raiseLookupError('OsmoSDR device not found (device string = %r)'%osmo_device)
0 commit comments