File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ def main():
1212        scrubber .scrub ()
1313    else :
1414        print ("Usage: PDNAScrubber.py <path to JSON file>" )
15-         exit (1 )
15+         sys . exit (1 )
1616
1717main ()
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def _openJson(self):
2828            f  =  open (self .jsonSourcePath , "r" ,encoding = "utf-8" )
2929        except  OSError  as  e :
3030            print (e .strerror )
31-             exit (1 )
31+             sys . exit (1 )
3232
3333        data  =  json .load (f )
3434        f .close ()
@@ -40,7 +40,7 @@ def _openJson(self):
4040                raise  ValueError ("Invalid JSON file" )
4141        except  ValueError  as  err :
4242            print (str (err ))
43-             exit (1 )
43+             sys . exit (1 )
4444
4545
4646    def  scrub (self ):
@@ -70,7 +70,7 @@ def scrub(self):
7070
7171        except  OSError  as  e :
7272            print (e .strerror )
73-             exit (1 )
73+             sys . exit (1 )
7474
7575    def  _fileInfo (self , data ,fileCount ):
7676        '''_summary_    = "This function is used to display the file details of the JSON file"''' 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments