freemt commited on
Commit
de714c1
·
1 Parent(s): d56bf3e

Update bothe file1 and file2 None, error_msg

Browse files
Files changed (1) hide show
  1. radiobee/gradiobee.py +4 -0
radiobee/gradiobee.py CHANGED
@@ -106,6 +106,10 @@ def gradiobee( # noqa
106
  # outputs: check return
107
  # if outputs is modified, also need to modify error_msg's outputs
108
 
 
 
 
 
109
  # convert "None" to None for those Radio types
110
  for _ in [idf_type, dl_type, norm]:
111
  if _ in "None":
 
106
  # outputs: check return
107
  # if outputs is modified, also need to modify error_msg's outputs
108
 
109
+ if not (file1 or file2):
110
+ msg = "Nothing to do..."
111
+ return error_msg(msg)
112
+
113
  # convert "None" to None for those Radio types
114
  for _ in [idf_type, dl_type, norm]:
115
  if _ in "None":