URL: <https://savannah.gnu.org/bugs/?62849>
Summary: Top Diseases report crashes on DemoServer Project: GNU Health Submitter: coogor Submitted: Mon 01 Aug 2022 12:48:05 PM UTC Category: reporting Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: meanmicio Open/Closed: Open Release: None Discussion Lock: Any Module: health_reporting Component: Hospital Management _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Mon 01 Aug 2022 12:48:05 PM UTC By: Axel Braun <coogor> I feel we have seen this before..... executing the Top diseases report, result on 'Infectious' is empty. Click on 'Switch View': test@localhost:~> gnuhealth-client ERROR:gnuhealth.common.common: File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/form.py", line 297, in sig_switch self.screen.switch_view() File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/screen/screen.py", line 554, in switch_view self.display() File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/screen/screen.py", line 944, in display view.display() File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph.py", line 92, in display self.widgets['root'].display(self.screen.group) File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 337, in display self.setColorScheme() File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 465, in setColorScheme r, g, b = hex2rgb(COLOR_SCHEMES.get(color, color)) File "/usr/lib/python3.10/site-packages/gnuhealth/common/common.py", line 1034, in hex2rgb r = int(hexstring[1:digits + 1], 16) TypeError: 'NoneType' object is not subscriptable followed by: ERROR:gnuhealth.common.common: File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 113, in do_draw self.updateArea(cr, width, height) File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 412, in updateArea for value, label in self.YLabels(): File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/bar.py", line 177, in YLabels ylabels = super(VerticalBar, self).YLabels() File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/view_form/view/graph_gtk/graph.py", line 175, in YLabels if self.yrange == 0.0: AttributeError: 'VerticalBar' object has no attribute 'yrange' Session has to be killed! _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?62849> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/