BioMike commited on
Commit
d0e2aff
1 Parent(s): 7212e31

Update interfaces/iupac2smiles.py

Browse files
Files changed (1) hide show
  1. interfaces/iupac2smiles.py +1 -3
interfaces/iupac2smiles.py CHANGED
@@ -3,9 +3,7 @@ from utils import ChemicalConverter, validate_smiles2iupac, plot_mol, login
3
 
4
  def convert(access_code, chemical_name, plot):
5
  if not login(access_code):
6
- if plot:
7
- plot_image = plot_mol("CCO")
8
- return "Currently, you don't have access to the service.", plot_image
9
  # Initialize the ChemicalConverter
10
  converter = ChemicalConverter(mode="IUPAC2SMILES")
11
  converted_name = ""
 
3
 
4
  def convert(access_code, chemical_name, plot):
5
  if not login(access_code):
6
+ return "Currently, you don't have access to the service.", plot_mol("CCO")
 
 
7
  # Initialize the ChemicalConverter
8
  converter = ChemicalConverter(mode="IUPAC2SMILES")
9
  converted_name = ""