Commit ebc8c0ab authored by Dan Pascu's avatar Dan Pascu

Handle None as an empty string in ApplicationData.get and Resources.get

parent 8d56ba22
......@@ -39,7 +39,7 @@ class ApplicationData(object):
@classmethod
def get(cls, resource):
return os.path.join(cls.directory, resource)
return os.path.join(cls.directory, resource or u'')
class Resources(object):
......@@ -67,6 +67,6 @@ class Resources(object):
@classmethod
def get(cls, resource):
return os.path.join(cls.directory, resource)
return os.path.join(cls.directory, resource or u'')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment