mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
Improve and standardize empty data check for all parsers
This commit is contained in:
@ -67,3 +67,7 @@ def compatibility(mod_name, compatible):
|
||||
mod = mod_name.split('.')[-1]
|
||||
compat_list = ', '.join(compatible)
|
||||
warning_message(f'{mod} parser not compatible with your OS ({sys.platform}).\n Compatible platforms: {compat_list}')
|
||||
|
||||
|
||||
def has_data(data):
|
||||
return True if data and not data.isspace() else False
|
||||
|
Reference in New Issue
Block a user