Skip to content

Don't fail if the OS has no version - #240

Open
City-busz wants to merge 1 commit into
flattool:mainfrom
City-busz:patch-1
Open

Don't fail if the OS has no version#240
City-busz wants to merge 1 commit into
flattool:mainfrom
City-busz:patch-1

Conversation

@City-busz

Copy link
Copy Markdown

This fixes the following error:

Traceback (most recent call last):
File "/usr/bin/warehouse", line 48, in <module>
sys.exit(main.main(VERSION))
~~~~~~~~~^^^^^^^^^
File "/usr/share/warehouse/src/main.py", line 284, in main
app = WarehouseApplication()
File "/usr/share/warehouse/src/main.py", line 71, in __init__
os_string = GLib.get_os_info("NAME") + " " + GLib.get_os_info("VERSION")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@City-busz