()
| 37 | print 'ERROR: Selection Must Be A Number' |
| 38 | |
| 39 | def workspace(): |
| 40 | try: |
| 41 | data = get_file() |
| 42 | while True: |
| 43 | work_menu() |
| 44 | select = work_query() |
| 45 | if select == 1: |
| 46 | extract_bmp(data) |
| 47 | elif select == 2: |
| 48 | extract_jpg(data) |
| 49 | elif select == 3: |
| 50 | break |
| 51 | else: |
| 52 | raise SystemExit |
| 53 | except Exception, error: |
| 54 | if error.__class__ is SystemExit: |
| 55 | raise SystemExit |
| 56 | else: |
| 57 | |
| 58 | |
| 59 | def get_file(): |
| 60 | while True: |
no test coverage detected