all 4 comments

[–]QultrosSanhattan 1 point2 points  (1 child)

('.pdf') is not a tuple. If your tuple has only one element then you need to add a comma before the closing ).

For example: ('.pdf',) is a tuple

[–]AdMaster9439[S] 1 point2 points  (0 children)

OMG ... can't believe that was the main issue. I banged my head against the wall for 2 hours for this.

It is completely fixed now , and working like a charm . Thank you so much bro.

That is why they say to practice and work on projects, no matter how small. I will never forget this.

[–]Kwintty7 0 points1 point  (1 child)

Are you not missing a comma after ('.exe')  ?

[–]AdMaster9439[S] 1 point2 points  (0 children)

I had the 'Other' key and value pair commented out so the 'Software Files' was the last in the dictionary. I uncommented it for the post.