Skip to content

Commit

Permalink
Handle unknown sims
Browse files Browse the repository at this point in the history
  • Loading branch information
shotwn committed Apr 5, 2020
1 parent 96ad62d commit 07fb651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def connect_pyuipc(self):
sim_offset = self.create_offset_set({'SIM_VERSION': [0x3308, 'b']})
result = sim_offset.read()
self.pyuipc_open = result['SIM_VERSION']
self.opened_sim = SIMULATORS[self.pyuipc_open]
self.opened_sim = SIMULATORS.get(self.pyuipc_open, 'SIM_VERSION', f'Unknown Sim: {self.pyuipc_open}')
return True

def close_pyuipc(self):
Expand Down

0 comments on commit 07fb651

Please sign in to comment.