Commit 81f10e7c authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

bug fix for compiling OpenQASM files, fileType was set to None but None is not iterable

parent 4b43c285
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -312,7 +312,7 @@ def main(argv=None):
        filename = None

    # If it is a C++ file
    if 'text/x-c' in fileType:
    if fileType != None and 'text/x-c' in fileType:
        fileIdx = sys.argv[1:].index(filename)
        tmpFileName = os.path.basename(filename)